| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.82" |
| 15 |
name = "tinystr" |
| 16 |
version = "0.8.4" |
| 17 |
authors = ["The ICU4X Project Developers"] |
| 18 |
build = false |
| 19 |
include = [ |
| 20 |
"data/**/*", |
| 21 |
"src/**/*", |
| 22 |
"examples/**/*", |
| 23 |
"benches/**/*", |
| 24 |
"tests/**/*", |
| 25 |
"Cargo.toml", |
| 26 |
"LICENSE", |
| 27 |
"README.md", |
| 28 |
"build.rs", |
| 29 |
] |
| 30 |
autolib = false |
| 31 |
autobins = false |
| 32 |
autoexamples = false |
| 33 |
autotests = false |
| 34 |
autobenches = false |
| 35 |
description = "A small ASCII-only bounded length string representation." |
| 36 |
readme = "README.md" |
| 37 |
keywords = [ |
| 38 |
"small-string", |
| 39 |
"ascii", |
| 40 |
"string", |
| 41 |
"str", |
| 42 |
] |
| 43 |
categories = ["data-structures"] |
| 44 |
license = "Unicode-3.0" |
| 45 |
repository = "https://github.com/unicode-org/icu4x" |
| 46 |
|
| 47 |
[package.metadata.workspaces] |
| 48 |
independent = true |
| 49 |
|
| 50 |
[package.metadata.docs.rs] |
| 51 |
all-features = true |
| 52 |
|
| 53 |
[package.metadata.cargo-all-features] |
| 54 |
max_combination_size = 3 |
| 55 |
|
| 56 |
[features] |
| 57 |
alloc = [ |
| 58 |
"serde_core?/alloc", |
| 59 |
"zerovec?/alloc", |
| 60 |
] |
| 61 |
databake = ["dep:databake"] |
| 62 |
default = ["alloc"] |
| 63 |
serde = ["dep:serde_core"] |
| 64 |
std = [] |
| 65 |
zerovec = ["dep:zerovec"] |
| 66 |
|
| 67 |
[lib] |
| 68 |
name = "tinystr" |
| 69 |
path = "src/lib.rs" |
| 70 |
bench = false |
| 71 |
|
| 72 |
[[test]] |
| 73 |
name = "serde" |
| 74 |
path = "tests/serde.rs" |
| 75 |
required-features = ["serde"] |
| 76 |
|
| 77 |
[[bench]] |
| 78 |
name = "construct" |
| 79 |
path = "benches/construct.rs" |
| 80 |
harness = false |
| 81 |
|
| 82 |
[[bench]] |
| 83 |
name = "overview" |
| 84 |
path = "benches/overview.rs" |
| 85 |
harness = false |
| 86 |
|
| 87 |
[[bench]] |
| 88 |
name = "read" |
| 89 |
path = "benches/read.rs" |
| 90 |
harness = false |
| 91 |
|
| 92 |
[[bench]] |
| 93 |
name = "serde" |
| 94 |
path = "benches/serde.rs" |
| 95 |
harness = false |
| 96 |
required-features = ["serde"] |
| 97 |
|
| 98 |
[dependencies.databake] |
| 99 |
version = "0.2.0" |
| 100 |
optional = true |
| 101 |
default-features = false |
| 102 |
|
| 103 |
[dependencies.displaydoc] |
| 104 |
version = "0.2.3" |
| 105 |
default-features = false |
| 106 |
|
| 107 |
[dependencies.serde_core] |
| 108 |
version = "1.0.220" |
| 109 |
optional = true |
| 110 |
default-features = false |
| 111 |
|
| 112 |
[dependencies.zerovec] |
| 113 |
version = "0.11.7" |
| 114 |
optional = true |
| 115 |
default-features = false |
| 116 |
|
| 117 |
[dev-dependencies.bincode] |
| 118 |
version = "1.3.1" |
| 119 |
|
| 120 |
[dev-dependencies.postcard] |
| 121 |
version = "1.0.3" |
| 122 |
features = ["use-std"] |
| 123 |
default-features = false |
| 124 |
|
| 125 |
[dev-dependencies.rand] |
| 126 |
version = "0.9" |
| 127 |
features = ["small_rng"] |
| 128 |
|
| 129 |
[dev-dependencies.serde_json] |
| 130 |
version = "1.0.45" |
| 131 |
features = ["alloc"] |
| 132 |
|
| 133 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] |
| 134 |
version = "0.5.0" |
| 135 |
|
| 136 |
[lints.clippy] |
| 137 |
alloc_instead_of_core = "warn" |
| 138 |
bool_assert_comparison = "allow" |
| 139 |
branches_sharing_code = "warn" |
| 140 |
collection_is_never_read = "warn" |
| 141 |
crosspointer_transmute = "warn" |
| 142 |
dbg_macro = "warn" |
| 143 |
debug_assert_with_mut_call = "warn" |
| 144 |
doc_markdown = "warn" |
| 145 |
exhaustive_enums = "deny" |
| 146 |
exhaustive_structs = "deny" |
| 147 |
fn_to_numeric_cast_any = "warn" |
| 148 |
infinite_loop = "warn" |
| 149 |
large_stack_arrays = "warn" |
| 150 |
mismatching_type_param_order = "warn" |
| 151 |
missing_fields_in_debug = "warn" |
| 152 |
missing_transmute_annotations = "warn" |
| 153 |
negative_feature_names = "warn" |
| 154 |
or_fun_call = "warn" |
| 155 |
same_functions_in_if_condition = "warn" |
| 156 |
todo = "warn" |
| 157 |
transmute_bytes_to_str = "warn" |
| 158 |
transmute_int_to_bool = "warn" |
| 159 |
transmute_int_to_non_zero = "warn" |
| 160 |
transmute_ptr_to_ptr = "warn" |
| 161 |
transmute_ptr_to_ref = "warn" |
| 162 |
transmute_undefined_repr = "warn" |
| 163 |
transmutes_expressible_as_ptr_casts = "warn" |
| 164 |
trivially_copy_pass_by_ref = "deny" |
| 165 |
unnecessary_wraps = "warn" |
| 166 |
useless_transmute = "warn" |
| 167 |
wildcard_dependencies = "warn" |
| 168 |
|
| 169 |
[lints.rust] |
| 170 |
missing_debug_implementations = "deny" |
| 171 |
trivial_numeric_casts = "deny" |
| 172 |
unused_lifetimes = "warn" |
| 173 |
unused_macro_rules = "warn" |
| 174 |
unused_qualifications = "warn" |
| 175 |
|
| 176 |
[lints.rust.unexpected_cfgs] |
| 177 |
level = "warn" |
| 178 |
priority = 0 |
| 179 |
check-cfg = [ |
| 180 |
"cfg(icu4c_enable_renaming)", |
| 181 |
"cfg(needs_alloc_error_handler)", |
| 182 |
"cfg(icu4x_nightly_tests)", |
| 183 |
"cfg(icu4x_run_size_tests)", |
| 184 |
"cfg(icu4x_unstable_fast_trie_only)", |
| 185 |
] |