1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
//! A collection of (bad) ideas that you may or may not want use in your next //! big project. Courtesy of //! [Nikolai Vazquez](https://twitter.com/NikolaiVazquez). //! //! ## 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; //! ``` //! //! ## 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. //! //! [`StalinSort`]: trait.StalinSort.html #![deny(missing_docs)] #![deny(private_in_public)] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(all(test, nightly), feature(test))] #[cfg(all(test, nightly))] extern crate test; #[cfg(feature = "alloc")] extern crate alloc; mod never; mod stalin_sort; pub use self::{ stalin_sort::StalinSort, never::Never, };