candid_parser 0.3.1

Candid is an interface description language (IDL) for interacting with canisters running on the Internet Computer. This crate contains the parser and the binding generator for Candid.
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 = "2021"
rust-version = "1.78.0"
name = "candid_parser"
version = "0.3.1"
authors = ["DFINITY Team"]
build = "build.rs"
include = [
    "src",
    "Cargo.toml",
    "build.rs",
    "LICENSE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Candid is an interface description language (IDL) for interacting with canisters running on the Internet Computer. This crate contains the parser and the binding generator for Candid."
homepage = "https://internetcomputer.org/docs/current/developer-docs/build/candid/candid-concepts"
documentation = "https://docs.rs/candid_parser"
readme = "README.md"
keywords = [
    "internet-computer",
    "idl",
    "candid",
    "dfinity",
    "parser",
]
categories = [
    "encoding",
    "parsing",
    "wasm",
]
license = "Apache-2.0"
repository = "https://github.com/dfinity/candid"

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

[features]
all = [
    "random",
    "assist",
]
assist = [
    "dep:dialoguer",
    "dep:console",
    "dep:ctrlc",
]
random = [
    "dep:arbitrary",
    "dep:fake",
    "dep:rand",
    "dep:num-traits",
]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.arbitrary]
version = "1.3"
optional = true

[dependencies.candid]
version = "0.10.16"
features = ["all"]

[dependencies.codespan-reporting]
version = "0.11"

[dependencies.console]
version = "0.15"
optional = true

[dependencies.convert_case]
version = "0.6"

[dependencies.ctrlc]
version = "3.4"
optional = true

[dependencies.dialoguer]
version = "0.11"
features = [
    "editor",
    "completion",
]
optional = true
default-features = false

[dependencies.fake]
version = "2.4"
optional = true

[dependencies.handlebars]
version = "6.0"

[dependencies.hex]
version = "0.4.3"

[dependencies.lalrpop-util]
version = "0.20.0"

[dependencies.logos]
version = "0.14"

[dependencies.num-bigint]
version = "0.4"
features = ["serde"]

[dependencies.num-traits]
version = "0.2"
optional = true

[dependencies.pretty]
version = "0.12"

[dependencies.rand]
version = "0.8"
optional = true

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

[dependencies.thiserror]
version = "1.0"

[dependencies.toml]
version = "0.8"
features = ["parse"]
default-features = false

[dev-dependencies.goldenfile]
version = "1.1.0"

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.test-generator]
version = "0.3.0"

[build-dependencies.lalrpop]
version = "0.20.0"

[lints.clippy.all]
level = "deny"
priority = 0

[lints.clippy.uninlined_format_args]
level = "allow"
priority = 1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(wasm_bindgen_unstable_test_coverage)"]