[package] name = "gstr" description = "An immutable string implementation optimized for small strings and comparison." version = "0.2.0" edition = "2021" rust-version = "1.81" authors = ["orzogc "] license = "MIT OR Apache-2.0" homepage = "https://github.com/orzogc/gstr" repository = "https://github.com/orzogc/gstr" readme = "README.md" keywords = ["string", "immutable"] categories = ["no-std"] [features] default = ["std"] # For running tests with nightly Rust. nightly_test = [] # For running proptest with MIRI. proptest_miri = ["nightly_test"] serde = ["dep:serde"] rkyv = ["dep:rkyv"] std = [] [dependencies] rkyv = { version = "0.8", optional = true, default-features = false } serde = { version = "1", optional = true, default-features = false, features = [ "alloc", ] } [dev-dependencies] criterion = "0.5.1" proptest = { version = "1.5.0", default-features = false, features = ["std"] } rand = "0.8.5" rkyv = { version = "0.8", default-features = false, features = ["alloc"] } serde_json = { version = "1.0.128", default-features = false, features = [ "alloc", ] } [[bench]] name = "compare_with_string" harness = false [lints.rust] missing_docs = "warn" unsafe_op_in_unsafe_fn = "warn" [lints.clippy] doc_markdown = "warn" manual_let_else = "warn" match_same_arms = "warn" ptr_as_ptr = "warn" ptr_cast_constness = "warn" redundant_closure_for_method_calls = "warn" redundant_else = "warn" ref_as_ptr = "warn" semicolon_if_nothing_returned = "warn" undocumented_unsafe_blocks = "warn" unwrap_or_default = "warn" [package.metadata.docs.rs] features = ["serde", "rkyv"] rustdoc-args = ["--generate-link-to-definition"]