[dependencies]
[dev-dependencies]
[[example]]
name = "wrapper_demo"
path = "examples/wrapper_demo.rs"
[lib]
name = "free_wrap"
path = "src/lib.rs"
[lints.clippy]
as_underscore = "warn"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
deref_by_slicing = "warn"
else_if_without_else = "warn"
empty_line_after_doc_comments = "warn"
equatable_if_let = "warn"
fn_to_numeric_cast_any = "warn"
format_push_string = "warn"
map_err_ignore = "warn"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
mixed_read_write_in_expression = "warn"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_raw_strings = "warn"
redundant_type_annotations = "warn"
rest_pat_in_fully_bound_structs = "warn"
string_lit_chars_any = "warn"
string_to_string = "warn"
unwrap_used = "warn"
use_self = "warn"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"
[package]
authors = ["Jasper 张汉杰 <hanjie.zhang1228@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "Provide a easy way to define NewType Wrapper"
edition = "2021"
exclude = [".github", "CHANGELOG.md"]
homepage = "https://github.com/vainjoker/free-wrap"
license = "GPL-3.0"
name = "free-wrap"
readme = "README.md"
repository = "https://github.com/vainjoker/free-wrap"
version = "0.1.0"
[profile.release]
strip = true
[[test]]
name = "generic_test"
path = "tests/generic_test.rs"
[[test]]
name = "simple_test"
path = "tests/simple_test.rs"
[[test]]
name = "wrap_test"
path = "tests/wrap_test.rs"