[package]
edition = "2024"
rust-version = "1.87.0"
name = "langweave"
version = "0.0.2"
authors = ["LangWeave Contributors"]
build = false
exclude = [
"/.git/*",
"/.github/*",
"/.gitignore",
"/.vscode/*",
]
include = [
"src/**/*",
"Cargo.toml",
"locales/**/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A Rust library for seamless internationalization (i18n) and localization.
"""
homepage = "https://langweave.com/"
documentation = "https://langweave.com/documentation/index.html"
readme = "README.md"
keywords = [
"langweave",
"generator",
"site",
"ssg",
"static",
]
categories = [
"data-structures",
"parsing",
"encoding",
"web-programming",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sebastienrousseau/langweave"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]
[package.metadata.cargo-machete]
ignored = [
"serde",
"serde_json",
"smallvec",
]
[package.metadata.clippy]
warn-lints = [
"clippy::all",
"clippy::pedantic",
"clippy::cargo",
"clippy::nursery",
"clippy::complexity",
"clippy::correctness",
"clippy::perf",
"clippy::style",
"clippy::suspicious",
"clippy::module_name_repetitions",
]
allow-lints = [
"clippy::module_inception",
"clippy::too_many_arguments",
"clippy::missing_docs_in_private_items",
]
deny-lints = [
"clippy::unwrap_used",
"clippy::expect_used",
]
[features]
async = ["dep:tokio"]
default = []
[lib]
name = "langweave"
path = "src/lib.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.log]
version = "0.4"
[dependencies.once_cell]
version = "1.20"
[dependencies.regex]
version = "1.5"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.smallvec]
version = "1.13"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.44"
features = ["rt"]
optional = true
[dependencies.whatlang]
version = "0.18"
[dev-dependencies.arbitrary]
version = "1.3"
features = ["derive"]
[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.quickcheck]
version = "1.0"
[dev-dependencies.quickcheck_macros]
version = "1.0"
[dev-dependencies.tokio]
version = "1.44"
features = ["full"]
[dev-dependencies.tokio-test]
version = "0.4"
[build-dependencies.version_check]
version = "0.9"
[lints.rust]
bare_trait_objects = "allow"
dead_code = "deny"
deprecated_in_future = "deny"
elided_lifetimes_in_paths = "allow"
ellipsis_inclusive_range_patterns = "deny"
explicit_outlives_requirements = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_copy_implementations = "warn"
missing_debug_implementations = "forbid"
missing_docs = "deny"
non_ascii_idents = "forbid"
non_camel_case_types = "allow"
non_upper_case_globals = "allow"
noop_method_call = "deny"
single_use_lifetimes = "deny"
trivial_bounds = "allow"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_pub = "forbid"
unsafe_code = "allow"
unstable_features = "warn"
unused_extern_crates = "warn"
unused_features = "deny"
unused_import_braces = "deny"
unused_labels = "deny"
unused_lifetimes = "deny"
unused_macro_rules = "deny"
unused_qualifications = "deny"
unused_results = "warn"
variant_size_differences = "deny"
[lints.rust.future_incompatible]
level = "deny"
priority = -1
[lints.rust.keyword_idents]
level = "deny"
priority = -1
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rust.rust_2024_compatibility]
level = "deny"
priority = -1
[lints.rust.unused]
level = "deny"
priority = -1
[profile.dev]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
panic = "unwind"
overflow-checks = true
incremental = true
strip = false
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
panic = "abort"
overflow-checks = false
incremental = false
strip = "symbols"
[profile.test]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
overflow-checks = true
incremental = true
strip = false