typewire 0.0.3

Derive-based cross-language type bridging with compile-time schema embedding and multi-target codegen
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85.0"
name = "typewire"
version = "0.0.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive-based cross-language type bridging with compile-time schema embedding and multi-target codegen"
homepage = "https://github.com/uael/typewire"
documentation = "https://docs.rs/typewire"
readme = "README.md"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/uael/typewire"

[package.metadata.docs.rs]
features = [
    "derive",
    "schemas",
    "uuid",
    "fractional_index",
    "chrono",
    "url",
    "indexmap",
    "bytes",
    "base64",
    "serde_json",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
base64 = ["dep:base64"]
bytes = ["dep:bytes"]
chrono = ["dep:chrono"]
cli = [
    "dep:clap",
    "dep:object",
    "dep:walrus",
    "typewire-schema/typescript",
]
default = ["derive"]
derive = ["dep:typewire-derive"]
fractional_index = ["dep:fractional_index"]
indexmap = ["dep:indexmap"]
schemas = ["typewire-derive?/schemas"]
serde_json = ["dep:serde_json"]
url = ["dep:url"]
uuid = ["dep:uuid"]

[lib]
name = "typewire"
path = "src/lib.rs"

[[bin]]
name = "typewire"
path = "src/bin.rs"
required-features = ["cli"]

[[test]]
name = "compile_tests"
path = "tests/compile_tests.rs"

[[test]]
name = "schema_integration"
path = "tests/schema_integration.rs"

[[test]]
name = "wasm_compound"
path = "tests/wasm_compound.rs"

[[test]]
name = "wasm_derive_attrs"
path = "tests/wasm_derive_attrs.rs"

[[test]]
name = "wasm_derive_enums"
path = "tests/wasm_derive_enums.rs"

[[test]]
name = "wasm_derive_structs"
path = "tests/wasm_derive_structs.rs"

[[test]]
name = "wasm_errors"
path = "tests/wasm_errors.rs"

[[test]]
name = "wasm_generics"
path = "tests/wasm_generics.rs"

[[test]]
name = "wasm_indexmap_indexset"
path = "tests/wasm_indexmap_indexset.rs"

[[test]]
name = "wasm_lenient"
path = "tests/wasm_lenient.rs"

[[test]]
name = "wasm_patch_js"
path = "tests/wasm_patch_js.rs"

[[test]]
name = "wasm_patch_js_collections"
path = "tests/wasm_patch_js_collections.rs"

[[test]]
name = "wasm_primitives"
path = "tests/wasm_primitives.rs"

[[test]]
name = "wasm_serde_json_value"
path = "tests/wasm_serde_json_value.rs"

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bytes]
version = "1"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.fractional_index]
version = "2"
optional = true

[dependencies.indexmap]
version = "2"
optional = true

[dependencies.log]
version = "0.4"
features = ["std"]

[dependencies.object]
version = "0.39"
features = [
    "read",
    "wasm",
]
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.similar]
version = "2.6"
features = ["wasm32_web_time"]

[dependencies.thiserror]
version = "2"

[dependencies.typewire-derive]
version = "=0.0.3"
optional = true

[dependencies.typewire-schema]
version = "=0.0.3"

[dependencies.url]
version = "2"
optional = true

[dependencies.uuid]
version = "1.4"
features = [
    "v4",
    "serde",
    "fast-rng",
]
optional = true

[dependencies.walrus]
version = "0.26"
optional = true

[dev-dependencies.indexmap]
version = "2"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.trybuild]
version = "1"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.90"

[target.'cfg(target_arch = "wasm32")'.dependencies.uuid]
version = "1.4"
features = ["js"]
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.js-sys]
version = "0.3.90"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.64"

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
dbg_macro = "deny"
missing_safety_doc = "deny"
too_many_lines = "allow"
undocumented_unsafe_blocks = "deny"

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1