26 releases (13 breaking)

Uses old Rust 2015

0.14.3 May 6, 2024
0.14.2 Mar 17, 2023
0.14.1 Feb 23, 2023
0.14.0 Apr 10, 2020
0.3.0 Oct 27, 2016

#50 in Data structures

Download history 199963/week @ 2024-07-20 190498/week @ 2024-07-27 199314/week @ 2024-08-03 201601/week @ 2024-08-10 209435/week @ 2024-08-17 207396/week @ 2024-08-24 203853/week @ 2024-08-31 205659/week @ 2024-09-07 197901/week @ 2024-09-14 212828/week @ 2024-09-21 231511/week @ 2024-09-28 232006/week @ 2024-10-05 219706/week @ 2024-10-12 234027/week @ 2024-10-19 217614/week @ 2024-10-26 211928/week @ 2024-11-02

921,053 downloads per month
Used in 958 crates (18 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