Cargo.toml 1.35 KB
Newer Older
[package]
name = "events"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
Hero Bird's avatar
Hero Bird committed
ink_abi = { path = "../../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { path = "../../../core", default-features = false }
ink_model = { path = "../../../model", default-features = false }
ink_lang = { path = "../../../lang", default-features = false }

scale = { package = "parity-scale-codec", version = "1.1", default-features = false, features = ["derive"] }
Hero Bird's avatar
Hero Bird committed
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }

[lib]
name = "events"
Hero Bird's avatar
Hero Bird committed
crate-type = [
	# Used for normal contract Wasm blobs.
	"cdylib",
	# Used for ABI generation.
	"rlib",
]

[features]
Hero Bird's avatar
Hero Bird committed
default = ["test-env"]
std = [
    "ink_abi/std",
    "ink_core/std",
    "ink_model/std",
    "ink_lang/std",
    "scale/std",
    "type-metadata/std",
]
test-env = [
Hero Bird's avatar
Hero Bird committed
	"std",
    "ink_core/test-env",
    "ink_model/test-env",
    "ink_lang/test-env",
]
Hero Bird's avatar
Hero Bird committed
ink-generate-abi = [
    "std",
    "ink_abi",
    "type-metadata",
    "ink_core/ink-generate-abi",
    "ink_lang/ink-generate-abi",
ink-as-dependency = []

[profile.release]
panic = "abort"
lto = true
opt-level = "z"
Hero Bird's avatar
Hero Bird committed

[workspace]
members = [
	".ink/abi_gen"
]
exclude = [
	".ink"
]