diff --git a/Cargo.toml b/Cargo.toml index 5688b91..6dc79f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ repository = "https://github.com/x52dev/detrim" license = "MIT OR Apache-2.0" edition = "2018" rust-version = "1.56.1" +exclude = [".*", "justfile", "flake.*"] [package.metadata.docs.rs] all-features = true diff --git a/src/cow_str.rs b/src/cow_str.rs index 3f7441f..1ee13b3 100644 --- a/src/cow_str.rs +++ b/src/cow_str.rs @@ -1,7 +1,11 @@ -use alloc::{borrow::ToOwned as _, str, string::String, vec::Vec}; +use alloc::{ + borrow::{Cow, ToOwned as _}, + str, + string::String, + vec::Vec, +}; use core::fmt; -use alloc::borrow::Cow; use serde::{de, Deserializer}; /// Trims a CoW string during deserialization. diff --git a/src/hashset_string.rs b/src/hashset_string.rs index 8632bd3..011a2b5 100644 --- a/src/hashset_string.rs +++ b/src/hashset_string.rs @@ -1,7 +1,6 @@ -use core::iter::FromIterator as _; -use std::collections::HashSet; - -use alloc::{borrow::ToOwned as _, string::String, vec::Vec}; +use std::{ + borrow::ToOwned as _, collections::HashSet, iter::FromIterator as _, string::String, vec::Vec, +}; use serde::{Deserialize as _, Deserializer}; diff --git a/src/lib.rs b/src/lib.rs index 87863bd..846c602 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,11 +12,11 @@ mod string; mod string_non_empty; mod vec_string; +#[cfg(feature = "std")] +pub use crate::hashset_string::hashset_string; pub use crate::{ cow_str::cow_str, string::{option_string, str, string}, string_non_empty::{option_string_non_empty, string_non_empty}, vec_string::vec_string, }; -#[cfg(feature = "std")] -pub use hashset_string::hashset_string;