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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
//! Shkeleton is a skeleton Rust project which defines some default dependencies and contains some //! common API's. //! The idea behind Shkeleton is that you don't need to update all the dependencies by hand for //! every your library or binary, you could just update Shkeleton version and get all updates. //! ## Dependencies //! * log - logging facade //! * byteorder - dealing with data reading/writing //! * lazy_static - macro to define a lazy static constants //! * array_tool - utilities for dealing with arrays //! * itertools - utilities for dealing with iterators //! * regex - regular expressions //! * url - handling URLs //! * derive_more & derive_deref - more derive implementations //! * chrono - dealing with time and date //! //! ## Features //! Shkeleton also defines a few features which extend the dependencies list and APIs. //! //! ### CLI feature //! Additional dependencies: //! * clap - define your command line arguments parser //! * sherr - error handling and logger helpers //! * glob - dealing with glob patterns //! //! ### Concurrency feature //! Additional dependencies: //! * scoped-pool - define and use a thread pool //! * num_cpus - get the number of CPUs and cores available //! * parking_lot - faster synchronization primitives //! Concurrency feature also defines a facade for RwLock, which allows to hide an implementation //! (std::sync::RwLock or parking_lot::RwLock) behind this facade and switch implementation without //! need to update sources. It could be valuable because the parking_lot implementation //! lacks "lock poisoning" and may be harder to debug deadlocks. //! //! ### Failure feature //! Enables `fail` feature of the `sherr` dependency. pub mod sync; #[doc(hidden)] pub use array_tool; #[doc(hidden)] pub use byteorder; #[doc(hidden)] pub use chrono; #[doc(hidden)] pub use derive_deref; #[doc(hidden)] pub use derive_more; #[doc(hidden)] pub use itertools; #[doc(hidden)] pub use lazy_static; #[doc(hidden)] pub use regex; #[doc(hidden)] pub use sherr; #[doc(hidden)] pub use url; #[cfg(feature = "cli")] #[doc(hidden)] pub use clap; #[cfg(feature = "cli")] #[doc(hidden)] pub use glob; #[cfg(feature = "concurrency")] #[doc(hidden)] pub use num_cpus; #[cfg(feature = "concurrency")] #[doc(hidden)] pub use parking_lot; #[cfg(feature = "concurrency")] #[doc(hidden)] pub use scoped_pool;