26 releases (13 breaking)

Uses old Rust 2015

new 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

#27 in Algorithms

Download history 121144/week @ 2024-01-20 130313/week @ 2024-01-27 138522/week @ 2024-02-03 140693/week @ 2024-02-10 134501/week @ 2024-02-17 131963/week @ 2024-02-24 130952/week @ 2024-03-02 135190/week @ 2024-03-09 139956/week @ 2024-03-16 138135/week @ 2024-03-23 125089/week @ 2024-03-30 133805/week @ 2024-04-06 144503/week @ 2024-04-13 144592/week @ 2024-04-20 128048/week @ 2024-04-27 155892/week @ 2024-05-04

596,313 downloads per month
Used in 827 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