# 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.65.0" name = "positions" version = "0.2.1" description = "A position (finance) definition with some good algebraic properties." readme = "README.md" keywords = ["finance"] license = "MIT" repository = "https://github.com/Nouzan/positions/" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [[example]] name = "arbitrage" required-features = ["alloc"] [[example]] name = "basic" required-features = ["alloc"] [[example]] name = "coin_margin" required-features = ["alloc"] [[example]] name = "multi_instruments" required-features = ["std"] [dependencies.hashbrown] version = "0.13.1" optional = true [dependencies.num-traits] version = "0.2.14" default_features = false [dependencies.serde] version = "1" features = ["derive"] optional = true default_features = false [dependencies.serde_with] version = "2.1" features = ["macros"] optional = true default_features = false [dependencies.smol_str] version = "0.1.23" optional = true default-features = false [dependencies.thiserror] version = "1.0" optional = true [dev-dependencies.anyhow] version = "1.0.66" [dev-dependencies.fraction] version = "0.12.1" [dev-dependencies.maplit] version = "1.0.2" [dev-dependencies.rust_decimal] version = "1.26.1" [dev-dependencies.rust_decimal_macros] version = "1.26.1" [dev-dependencies.serde_json] version = "1.0" [features] alloc = [ "smol_str", "hashbrown", "serde?/alloc", ] default = ["std"] serde = [ "dep:serde", "serde_with", "smol_str?/serde", "hashbrown?/serde", ] std = [ "thiserror", "alloc", "serde?/std", "smol_str?/std", ]