| 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.71.1" |
| 15 |
name = "zerofrom" |
| 16 |
version = "0.1.8" |
| 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 = "ZeroFrom trait for constructing" |
| 36 |
readme = "README.md" |
| 37 |
keywords = [ |
| 38 |
"zero-copy", |
| 39 |
"serialization", |
| 40 |
"memory-efficiency", |
| 41 |
] |
| 42 |
categories = [ |
| 43 |
"data-structures", |
| 44 |
"caching", |
| 45 |
"no-std", |
| 46 |
] |
| 47 |
license = "Unicode-3.0" |
| 48 |
repository = "https://github.com/unicode-org/icu4x" |
| 49 |
|
| 50 |
[package.metadata.workspaces] |
| 51 |
independent = true |
| 52 |
|
| 53 |
[package.metadata.docs.rs] |
| 54 |
all-features = true |
| 55 |
|
| 56 |
[package.metadata.playground] |
| 57 |
all-features = true |
| 58 |
|
| 59 |
[features] |
| 60 |
alloc = [] |
| 61 |
default = ["alloc"] |
| 62 |
derive = ["dep:zerofrom-derive"] |
| 63 |
|
| 64 |
[lib] |
| 65 |
name = "zerofrom" |
| 66 |
path = "src/lib.rs" |
| 67 |
|
| 68 |
[dependencies.zerofrom-derive] |
| 69 |
version = "0.1.6" |
| 70 |
optional = true |
| 71 |
default-features = false |
| 72 |
|
| 73 |
[lints.clippy] |
| 74 |
alloc-instead-of-core = "warn" |
| 75 |
bool-assert-comparison = "allow" |
| 76 |
branches-sharing-code = "warn" |
| 77 |
collection_is_never_read = "warn" |
| 78 |
crosspointer_transmute = "warn" |
| 79 |
dbg_macro = "warn" |
| 80 |
debug_assert_with_mut_call = "warn" |
| 81 |
doc_markdown = "warn" |
| 82 |
exhaustive_enums = "deny" |
| 83 |
exhaustive_structs = "deny" |
| 84 |
fn_to_numeric_cast_any = "warn" |
| 85 |
infinite_loop = "warn" |
| 86 |
large_stack_arrays = "warn" |
| 87 |
mismatching_type_param_order = "warn" |
| 88 |
missing_fields_in_debug = "warn" |
| 89 |
missing_transmute_annotations = "warn" |
| 90 |
negative_feature_names = "warn" |
| 91 |
or-fun-call = "warn" |
| 92 |
same_functions_in_if_condition = "warn" |
| 93 |
todo = "warn" |
| 94 |
transmute_bytes_to_str = "warn" |
| 95 |
transmute_int_to_bool = "warn" |
| 96 |
transmute_int_to_non_zero = "warn" |
| 97 |
transmute_ptr_to_ptr = "warn" |
| 98 |
transmute_ptr_to_ref = "warn" |
| 99 |
transmute_undefined_repr = "warn" |
| 100 |
transmutes_expressible_as_ptr_casts = "warn" |
| 101 |
trivially_copy_pass_by_ref = "deny" |
| 102 |
unnecessary-wraps = "warn" |
| 103 |
useless_transmute = "warn" |
| 104 |
wildcard_dependencies = "warn" |
| 105 |
|
| 106 |
[lints.rust] |
| 107 |
missing_debug_implementations = "deny" |
| 108 |
trivial_numeric_casts = "deny" |
| 109 |
unused_lifetimes = "warn" |
| 110 |
unused_macro_rules = "warn" |
| 111 |
unused_qualifications = "warn" |
| 112 |
|
| 113 |
[lints.rust.unexpected_cfgs] |
| 114 |
level = "warn" |
| 115 |
priority = 0 |
| 116 |
check-cfg = [ |
| 117 |
"cfg(icu4c_enable_renaming)", |
| 118 |
"cfg(needs_alloc_error_handler)", |
| 119 |
"cfg(icu4x_run_size_tests)", |
| 120 |
"cfg(icu4x_unstable_fast_trie_only)", |
| 121 |
] |