[package] name = "cardano-serialization-lib" version = "12.0.0-beta.2" edition = "2018" authors = ["EMURGO"] license = "MIT" description = "(De)serialization functions for the Cardano blockchain along with related utility functions" documentation = "https://docs.cardano.org/cardano-components/cardano-serialization-lib" repository = "https://github.com/Emurgo/cardano-serialization-lib" readme="../README.md" exclude = [ "pkg/*", ] [lib] crate-type = ["cdylib", "rlib"] [dependencies] cryptoxide = "0.4.2" cbor_event = "2.1.3" ed25519-bip32 = "0.4.1" sha2 = "^0.9" digest = "^0.9" bech32 = "0.7.2" hex = "0.4.0" cfg-if = "1" hashlink = "0.9.1" serde_json = { version = "1.0.114", features = ["arbitrary_precision"] } num-bigint = "0.4.0" num-integer = "0.1.45" # The default can't be compiled to wasm, so it's necessary to use either the 'nightly' # feature or this one clear_on_drop = { version = "0.2", features = ["no_cc"] } itertools = "0.10.1" rand = "0.8.4" schemars = "0.8.8" serde = { version = "1.0", features = ["derive"] } num-derive = "0.4.0" num-traits = "0.2.16" num = "0.4.1" # non-wasm [target.'cfg(not(all(target_arch = "wasm32", not(target_os = "emscripten"))))'.dependencies] rand_os = "0.1" noop_proc_macro = "0.3.0" getrandom = "0.2.3" # wasm [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies] serde-wasm-bindgen = "0.4.5" wasm-bindgen = "=0.2.90" rand_os = { version = "0.1", features = ["wasm-bindgen"] } js-sys = "0.3.51" getrandom = { version = "0.2.3", features = ["js"] } [profile.release] # Tell `rustc` to optimize for small code size. opt-level = "s" [dev-dependencies] quickcheck = "0.9.2" quickcheck_macros = "0.9.1" rand_os = "0.1" rand_chacha = "0.1" [build-dependencies] schemars = "0.8.8" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0.57"