-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
63 lines (56 loc) · 1.62 KB
/
Cargo.toml
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
[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 <[email protected]>"]
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"]