25 releases (13 breaking)

Uses old Rust 2015

0.14.2 Mar 17, 2023
0.14.0 Apr 10, 2020
0.13.1 Sep 19, 2019
0.13.0 Mar 25, 2019
0.3.0 Oct 27, 2016

#47 in Algorithms

Download history 109488/week @ 2023-12-18 65595/week @ 2023-12-25 87657/week @ 2024-01-01 117583/week @ 2024-01-08 120981/week @ 2024-01-15 119326/week @ 2024-01-22 134357/week @ 2024-01-29 140339/week @ 2024-02-05 141581/week @ 2024-02-12 131424/week @ 2024-02-19 131212/week @ 2024-02-26 133049/week @ 2024-03-04 134696/week @ 2024-03-11 139319/week @ 2024-03-18 136260/week @ 2024-03-25 118308/week @ 2024-04-01

538,348 downloads per month
Used in 807 crates (17 directly)

MIT/Apache

73KB
1.5K SLoC

Build Status

An implementation of union-find in Rust; extracted from (and used by) rustc.

Name

The name "ena" comes from the Greek word for "one".

Features

By default, you just get the union-find implementation. You can also opt-in to the following experimental features:

  • bench: use to run benchmarks (cargo bench --features bench)

License

Like rustc itself, this code is dual-licensed under the MIT and Apache licenses. Pull requests, comments, and other contributions are assumed to imply consent to those terms. Moreover, it is understood that any changes here may well be used in rustc itself under the same terms.


lib.rs:

An implementation of union-find. See the unify module for more details.

Dependencies

~93KB