# 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 = "starfish-common" version = "1.3.0" authors = ["husky "] exclude = [ ".vscode", "rustfmt.toml", ] description = "海星量化平台" homepage = "https://github.com/StarfishGroup/starfish" readme = "README.md" license = "MIT" repository = "https://github.com/StarfishGroup/starfish" [dependencies.actix-web] version = "4.5.1" optional = true [dependencies.anyhow] version = "1.0.75" features = ["backtrace"] [dependencies.async-trait] version = "0.1.77" [dependencies.base64] version = "0.22.0" optional = true [dependencies.chrono] version = "0.4.34" features = ["serde"] optional = true [dependencies.config] version = "0.14.0" features = ["toml"] optional = true default-features = false [dependencies.futures] version = "0.3.30" [dependencies.log] version = "0.4.21" optional = true [dependencies.num_cpus] version = "1.16.0" [dependencies.reqwest] version = "0.12.1" features = [ "rustls-tls", "json", ] optional = true default-features = false [dependencies.ring] version = "0.17.8" optional = true [dependencies.rust_decimal] version = "1.35.0" optional = true [dependencies.sea-orm] version = "0.12.14" features = [ "sqlx-mysql", "runtime-tokio-rustls", ] optional = true [dependencies.serde] version = "1.0.197" features = ["derive"] [dependencies.serde_json] version = "1.0.114" [dependencies.serde_urlencoded] version = "0.7" [dependencies.snowflaked] version = "1.0.2" features = ["sync"] optional = true [dependencies.tokio] version = "1.36.0" features = ["full"] [dependencies.tracing] version = "0.1.40" optional = true [dependencies.tracing-appender] version = "0.2.3" optional = true [dependencies.tracing-subscriber] version = "0.3.18" optional = true [features] chrono = ["dep:chrono"] crypto = [ "dep:ring", "dep:base64", ] database = [ "dep:sea-orm", "dep:log", "chrono", "decimal", ] decimal = ["dep:rust_decimal"] default = [] env = ["dep:config"] http = ["dep:reqwest"] log = [ "dep:tracing", "dep:tracing-subscriber", "dep:tracing-appender", "chrono", ] uuid = ["dep:snowflaked"] web = ["dep:actix-web"]