# 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 = "ic_principal"
version = "0.1.5"
authors = ["DFINITY Stiftung <sdk@dfinity.org>"]
build = false
include = [
    "src",
    "Cargo.toml",
    "LICENSE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Principal type used on the Internet Computer."
homepage = "https://internetcomputer.org/docs/current/references/id-encoding-spec"
documentation = "https://docs.rs/ic_principal"
readme = "README.md"
keywords = [
    "internet-computer",
    "types",
    "dfinity",
]
categories = [
    "data-structures",
    "no-std",
]
license = "Apache-2.0"
repository = "https://github.com/dfinity/candid"

[features]
all = [
    "arbitrary",
    "default",
]
arbitrary = [
    "dep:arbitrary",
    "serde",
]
convert = [
    "dep:crc32fast",
    "dep:data-encoding",
    "dep:thiserror",
]
default = [
    "convert",
    "self_authenticating",
    "serde",
]
rangemap = ["dep:rangemap"]
schemars = [
    "dep:schemars",
    "serde",
]
self_authenticating = ["dep:sha2"]
serde = [
    "dep:serde",
    "convert",
]

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

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

[dependencies.crc32fast]
version = "1.3.0"
optional = true

[dependencies.data-encoding]
version = "2.3.2"
optional = true

[dependencies.rangemap]
version = "1.6.0"
optional = true

[dependencies.schemars]
version = "1.2.1"
optional = true

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

[dependencies.sha2]
version = "0.10.1"
optional = true

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

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

[dev-dependencies.serde_cbor]
version = "0.11.2"

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

[dev-dependencies.serde_test]
version = "1.0.137"

[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)"]
