# 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" name = "h1emu-core" version = "1.3.0" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Utility library used in h1emu." readme = "README.md" license = "BSD-3-Clause" repository = "https://github.com/H1emu/H1emu-core" [package.metadata.wasm-pack.profile.release] wasm-opt = ["-O4"] [package.metadata.wasm-pack.profile.release.wasm-bindgen] debug-js-glue = false demangle-name-section = true dwarf-debug-info = false [profile.release] opt-level = 3 lto = true [lib] name = "h1emu_core" crate-type = [ "cdylib", "rlib", ] path = "src/lib.rs" [[bench]] name = "lib-bench" path = "benches/lib-bench.rs" harness = false [dependencies.byteorder] version = "1.5.0" optional = true [dependencies.getrandom] version = "0.2.11" features = ["js"] optional = true [dependencies.gloo-utils] version = "0.2.0" [dependencies.rand] version = "0.8.5" optional = true [dependencies.serde] version = "1.0.193" features = ["derive"] optional = true [dependencies.serde_json] version = "1.0.108" optional = true [dependencies.wasm-bindgen] version = "0.2.89" [dev-dependencies.criterion] version = "0.5.1" [features] crc = ["byteorder"] default = ["full"] full = [ "game-utils", "soeprotocol", "gatewayprotocol", "protocols", "jenkins", "rc4", "crc", ] game-utils = [ "rand", "getrandom", ] gatewayprotocol = [ "serde", "serde_json", "byteorder", "protocols", ] jenkins = [] protocols = [ "serde", "serde_json", "byteorder", ] rc4 = [] soeprotocol = [ "crc", "serde", "serde_json", "byteorder", "protocols", ]