canton-codegen 0.3.1

Type-safe Rust code generation from Daml packages (DAR to Rust).
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.88"
name = "canton-codegen"
version = "0.3.1"
authors = ["NODEJUMPER <dmitryk@nodejumper.io>"]
build = false
include = [
    "src/**/*",
    "examples/**/*",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-safe Rust code generation from Daml packages (DAR to Rust)."
homepage = "https://nodejumper.io/"
readme = "README.md"
keywords = [
    "canton",
    "daml",
    "codegen",
    "dar",
    "bindings",
]
categories = [
    "development-tools",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/nodejumper-org/canton-rust-sdk"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

[[example]]
name = "regenerate_splice"
path = "examples/regenerate_splice.rs"

[dependencies.canton-lf]
version = "0.3.1"

[dependencies.heck]
version = "0.5"

[dependencies.prettyplease]
version = "0.2"

[dependencies.proc-macro2]
version = "1"

[dependencies.quote]
version = "1"

[dependencies.semver]
version = "1"
default-features = false

[dependencies.syn]
version = "2"
features = [
    "full",
    "parsing",
]

[dependencies.thiserror]
version = "2"

[dev-dependencies.canton-lf]
version = "0.3.1"

[dev-dependencies.sha2]
version = "0.10"
default-features = false

[lints.clippy]
doc_markdown = "allow"
expect_used = "warn"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
unwrap_used = "warn"

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

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1