[package]
edition = "2024"
name = "lenso-contract-codegen"
version = "0.10.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generates exact Rust, TypeScript, and WIT bindings from portable Lenso Capability contracts."
readme = false
license = "MIT"
repository = "https://github.com/LioRael/lenso"
resolver = "2"
[lib]
name = "lenso_contract_codegen"
path = "src/lib.rs"
[[bin]]
name = "lenso-contract-codegen"
path = "src/main.rs"
[[test]]
name = "codegen"
path = "tests/codegen.rs"
[[test]]
name = "provider_failures"
path = "tests/provider_failures.rs"
[[test]]
name = "source_snapshot"
path = "tests/source_snapshot.rs"
[dependencies.lenso-contract-authoring]
version = "0.1.1"
[dependencies.regex]
version = "1.12"
[dependencies.semver]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
features = [
"preserve_order",
"raw_value",
]
[dependencies.sha2]
version = "0.10"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.wit-parser]
version = "0.252"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"