[package]
name = "ic-canister-kit"
version = "0.3.21"
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
include = ["src", "Cargo.toml", "LICENSE", "README.md"]
description = "An ic canister package"
authors = ["Anubis Awooo"]
repository = "https://github.com/AnubisAwooo/ic-canister-kit"
[profile.release]
lto = true
opt-level = 'z'
codegen-units = 1
[features]
default = ["without_nft"]
identity = ["candid", "ic-cdk", "sha2", "crc32fast", "hex"]
canister_cycles = ["candid", "serde"]
canister_status = ["identity"]
canister_create = ["identity"]
canister_settings = ["identity"]
canister_codes = ["identity"]
canister_deploy = [
"canister_status",
"canister_create",
"canister_codes",
]
canister_call = ["identity"]
canister_candid = ["canister_call"]
canister_managed = [
"canister_cycles",
"canister_status",
"canister_codes",
"canister_deploy",
]
number_random = ["ic-cdk"]
number_mix = ["number_random", "sha2", "base32"]
token_ledger = ["identity", "serde"]
token_icrc1 = ["identity", "serde"]
times = ["ic-cdk"]
times_schedulable = ["times", "ic-cdk-timers"]
common_pages = []
common_result = ["candid"]
http = ["candid", "serde", "serde_json"]
stable = ["candid"]
stable_initial = ["stable"]
stable_upgrade = ["stable"]
stable_maintainable = ["stable"]
stable_permissable = ["stable", "canister_call", "times_schedulable"]
stable_recordable = [
"stable",
"times_schedulable",
"common_pages",
"canister_call",
]
stable_notifiable = ["stable", "times"]
stable_uploads = ["stable"]
stable_hashmap = ["stable"]
nft = ["identity"]
nft_ext = ["nft"]
nft_ticket = ["nft"]
nft_limit = ["nft"]
nft_traits = ["nft"]
candid_type = []
all = [
"identity",
"canister_cycles",
"canister_status",
"canister_create",
"canister_settings",
"canister_codes",
"canister_deploy",
"canister_call",
"canister_candid",
"canister_managed",
"number_random",
"number_mix",
"token_ledger",
"token_icrc1",
"times",
"times_schedulable",
"common_pages",
"common_result",
"http",
"stable",
"stable_initial",
"stable_upgrade",
"stable_maintainable",
"stable_permissable",
"stable_recordable",
"stable_notifiable",
"stable_uploads",
"stable_hashmap",
"nft",
"nft_ext",
"nft_ticket",
"nft_limit",
"nft_traits",
"candid_type",
]
without_nft = [
"identity",
"canister_cycles",
"canister_status",
"canister_create",
"canister_settings",
"canister_codes",
"canister_deploy",
"canister_call",
"canister_candid",
"canister_managed",
"number_random",
"number_mix",
"token_ledger",
"token_icrc1",
"times",
"times_schedulable",
"common_pages",
"common_result",
"http",
"stable",
"stable_initial",
"stable_upgrade",
"stable_maintainable",
"stable_permissable",
"stable_recordable",
"stable_notifiable",
"stable_uploads",
"stable_hashmap",
"candid_type",
]
[dependencies]
candid = { version = "0.9.3", optional = true }
ic-cdk = { version = "0.11.3", optional = true }
ic-cdk-timers = { version = "0.5.1", optional = true }
sha2 = { version = "0.10.6", optional = true }
crc32fast = { version = "1.3.2", optional = true }
hex = { version = "0.4.3", optional = true }
base32 = { version = "0.4.0", optional = true }
serde = { version = "1", optional = true, features = ["derive"] }
serde_json = { version = "1.0.95", optional = true }