[package]
edition = "2024"
rust-version = "1.88"
name = "formars-core"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed schema primitives with a dyn-safe erased view for form validation."
documentation = "https://docs.rs/formars-core"
readme = "README.md"
keywords = [
"forms",
"validation",
"schema",
"coercion",
]
categories = ["rust-patterns"]
license = "MIT"
repository = "https://github.com/edoriban/formars"
[features]
serde = [
"dep:serde",
"dep:serde_json",
]
[lib]
name = "formars_core"
path = "src/lib.rs"
[[test]]
name = "coerce"
path = "tests/coerce.rs"
[[test]]
name = "errors"
path = "tests/errors.rs"
[[test]]
name = "json_interop"
path = "tests/json_interop.rs"
[[test]]
name = "nested_adapter"
path = "tests/nested_adapter.rs"
[[test]]
name = "object"
path = "tests/object.rs"
[[test]]
name = "parity"
path = "tests/parity.rs"
[[test]]
name = "prelude"
path = "tests/prelude.rs"
[[test]]
name = "primitives"
path = "tests/primitives.rs"
[[test]]
name = "refine"
path = "tests/refine.rs"
[[test]]
name = "send_sync"
path = "tests/send_sync.rs"
[[test]]
name = "value"
path = "tests/value.rs"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false
[dependencies.serde_json]
version = "1"
features = ["preserve_order"]
optional = true
[lints.clippy]
allow_attributes_without_reason = "warn"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
single_match_else = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"