# bad-rs
Crates.io Downloads Build Status rustc ^1.31.0
Become a Patron! Buy me a coffee
A collection of (bad) ideas in Rust that you may or may not want to make use of in your next big project. Courtesy of [Nikolai Vazquez](https://twitter.com/NikolaiVazquez). [Documentation](https://docs.rs/bad/) ## Installation This crate is available [on crates.io](https://crates.io/crates/bad) and can be used by adding the following to your project's [`Cargo.toml`](https://doc.rust-lang.org/cargo/reference/manifest.html): ```toml [dependencies] bad = "0.1.1" ``` and optionally add this to your crate root (`main.rs` or `lib.rs`): ```rust extern crate bad; ``` ## Usage This crate exposes the following functionality: - [`StalinSort`]: A single pass, no-nonsense sorting algorithm with O(n) complexity that removes elements until the value is sorted. - [`Never`]: A type alias to [`!` (never)][never] that works in places `!` doesn't currently in stable Rust. ## License This project is released under either: - [The Unlicense](https://github.com/nvzqz/bad-rs/blob/master/UNLICENSE) - [MIT License](https://github.com/nvzqz/bad-rs/blob/master/LICENSE-MIT) at your choosing. [never]: https://doc.rust-lang.org/std/primitive.never.html [`StalinSort`]: https://docs.rs/bad/0.1.1/bad/trait.StalinSort.html [`Never`]: https://docs.rs/bad/0.1.1/bad/type.Never.html