[package]
edition = "2021"
name = "statsig-rust"
version = "0.15.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Statsig Rust SDK for usage in multi-user server environments."
homepage = "https://statsig.com/"
readme = false
license = "ISC"
repository = "https://github.com/statsig-io/statsig-server-core"
[features]
custom_network_provider = []
default = ["reqwest"]
ffi-support = []
testing = []
with_grpc = ["sigstat-grpc"]
with_zstd = []
[lib]
name = "statsig_rust"
path = "src/lib.rs"
[[test]]
name = "check_gate_tests"
path = "tests/check_gate_tests.rs"
[[test]]
name = "customized_specs_adapter_tests"
path = "tests/customized_specs_adapter_tests.rs"
[[test]]
name = "data_store_lock_tests"
path = "tests/data_store_lock_tests.rs"
[[test]]
name = "direct_gcir_tests"
path = "tests/direct_gcir_tests.rs"
[[test]]
name = "dynamic_string_tests"
path = "tests/dynamic_string_tests.rs"
[[test]]
name = "dynamic_value_tests"
path = "tests/dynamic_value_tests.rs"
[[test]]
name = "evaluation_details_tests"
path = "tests/evaluation_details_tests.rs"
[[test]]
name = "evaluator_value_tests"
path = "tests/evaluator_value_tests.rs"
[[test]]
name = "event_logger_failing_flush_tests"
path = "tests/event_logger_failing_flush_tests.rs"
[[test]]
name = "event_logger_flush_tests"
path = "tests/event_logger_flush_tests.rs"
[[test]]
name = "event_logger_high_qps_tests"
path = "tests/event_logger_high_qps_tests.rs"
[[test]]
name = "event_logger_usage_tests"
path = "tests/event_logger_usage_tests.rs"
[[test]]
name = "expected_evaluation_tests"
path = "tests/expected_evaluation_tests.rs"
[[test]]
name = "exposure_sampling_key_tests"
path = "tests/exposure_sampling_key_tests.rs"
[[test]]
name = "exposure_tests"
path = "tests/exposure_tests.rs"
[[test]]
name = "flushing_tests"
path = "tests/flushing_tests.rs"
[[test]]
name = "gate_inversion_eval_tests"
path = "tests/gate_inversion_eval_tests.rs"
[[test]]
name = "gcir_tests"
path = "tests/gcir_tests.rs"
[[test]]
name = "global_configs_test"
path = "tests/global_configs_test.rs"
[[test]]
name = "grpc_specs_adapter_tests"
path = "tests/grpc_specs_adapter_tests.rs"
[[test]]
name = "hash_util_evaluation_hash_tests"
path = "tests/hash_util_evaluation_hash_tests.rs"
[[test]]
name = "http_specs_adapter_tests"
path = "tests/http_specs_adapter_tests.rs"
[[test]]
name = "initialize_timeout_test"
path = "tests/initialize_timeout_test.rs"
[[test]]
name = "instance_registry_tests"
path = "tests/instance_registry_tests.rs"
[[test]]
name = "layer_serialization_tests"
path = "tests/layer_serialization_tests.rs"
[[test]]
name = "list_methods_tests"
path = "tests/list_methods_tests.rs"
[[test]]
name = "network_client_streaming_tests"
path = "tests/network_client_streaming_tests.rs"
[[test]]
name = "network_client_tests"
path = "tests/network_client_tests.rs"
[[test]]
name = "network_failure_tests"
path = "tests/network_failure_tests.rs"
[[test]]
name = "observability_client_usage_tests"
path = "tests/observability_client_usage_tests.rs"
[[test]]
name = "output_logger_tests"
path = "tests/output_logger_tests.rs"
[[test]]
name = "override_adapter_tests"
path = "tests/override_adapter_tests.rs"
[[test]]
name = "perf_tests"
path = "tests/perf_tests.rs"
[[test]]
name = "proto_specs_usage_tests"
path = "tests/proto_specs_usage_tests.rs"
[[test]]
name = "spec_types_tests"
path = "tests/spec_types_tests.rs"
[[test]]
name = "statsig_disable_network_tests"
path = "tests/statsig_disable_network_tests.rs"
[[test]]
name = "statsig_environment_tests"
path = "tests/statsig_environment_tests.rs"
[[test]]
name = "statsig_event_emitter_usage_test"
path = "tests/statsig_event_emitter_usage_test.rs"
[[test]]
name = "statsig_global_tests"
path = "tests/statsig_global_tests.rs"
[[test]]
name = "statsig_local_file_event_logging_adapter_tests"
path = "tests/statsig_local_file_event_logging_adapter_tests.rs"
[[test]]
name = "statsig_local_file_specs_adapter_tests"
path = "tests/statsig_local_file_specs_adapter_tests.rs"
[[test]]
name = "statsig_options_tests"
path = "tests/statsig_options_tests.rs"
[[test]]
name = "statsig_shared_tests"
path = "tests/statsig_shared_tests.rs"
[[test]]
name = "statsig_tests"
path = "tests/statsig_tests.rs"
[[test]]
name = "statsig_user_builder_tests"
path = "tests/statsig_user_builder_tests.rs"
[[test]]
name = "statsig_user_field_accessor_tests"
path = "tests/statsig_user_field_accessor_tests.rs"
[[test]]
name = "statsig_user_internal_tests"
path = "tests/statsig_user_internal_tests.rs"
[[test]]
name = "statsig_user_loggable_tests"
path = "tests/statsig_user_loggable_tests.rs"
[[test]]
name = "statsig_user_tests"
path = "tests/statsig_user_tests.rs"
[[test]]
name = "syncing_network_failure_tests"
path = "tests/syncing_network_failure_tests.rs"
[[test]]
name = "typed_getters_tests"
path = "tests/typed_getters_tests.rs"
[[test]]
name = "ua_parser_util_test"
path = "tests/ua_parser_util_test.rs"
[[test]]
name = "user_agent_tests_first_party"
path = "tests/user_agent_tests_first_party.rs"
[[test]]
name = "user_json_tests"
path = "tests/user_json_tests.rs"
[dependencies.ahash]
version = "0.8.11"
[dependencies.arc-swap]
version = "1.7.1"
[dependencies.async-trait]
version = "0.1.81"
[dependencies.base64]
version = "0.22.1"
[dependencies.brotli]
version = "8.0.2"
[dependencies.bytes]
version = "1.7.0"
[dependencies.chrono]
version = "0.4.40"
[dependencies.dashmap]
version = "6.1.0"
[dependencies.fancy-regex]
version = "0.17"
[dependencies.file-guard]
version = "0.2.0"
[dependencies.flate2]
version = "1.0.35"
[dependencies.futures]
version = "0.3.30"
[dependencies.lazy_static]
version = "1.5.0"
[dependencies.log]
version = "0.4.22"
[dependencies.parking_lot]
version = "0.12.1"
[dependencies.percent-encoding]
version = "2.3.1"
[dependencies.prost]
version = "0.14"
features = ["derive"]
[dependencies.rand]
version = "0.8.4"
[dependencies.reqwest]
version = "0.12.14"
features = [
"json",
"gzip",
"rustls-tls",
"brotli",
]
optional = true
default-features = false
[dependencies.serde]
version = "1.0.204"
features = ["derive"]
[dependencies.serde_derive]
version = "1.0.204"
features = ["deserialize_in_place"]
[dependencies.serde_json]
version = "1.0.143"
features = [
"float_roundtrip",
"raw_value",
]
[dependencies.serde_with]
version = "3.4.0"
[dependencies.sha2]
version = "0.10.8"
[dependencies.sigstat-grpc]
version = "0.15.0"
optional = true
[dependencies.simple_logger]
version = "5.0.0"
[dependencies.tempfile]
version = "3.8.1"
[dependencies.tokio]
version = "1.39.1"
features = ["full"]
[dependencies.tonic]
version = "0.14"
[dependencies.uaparser]
version = "0.6.4"
[dependencies.uuid]
version = "1.10.0"
features = [
"v4",
"fast-rng",
]
[dependencies.zstd]
version = "0.13.2"
features = ["zdict_builder"]
[dev-dependencies.assert-json-diff]
version = "2.0.2"
[dev-dependencies.libc]
version = "0.2"
[dev-dependencies.mockito]
version = "1.5.0"
[dev-dependencies.more-asserts]
version = "0.3.1"
[dev-dependencies.serial_test]
version = "3.2.0"
[dev-dependencies.wiremock]
version = "0.6.2"
[build-dependencies.tonic-prost-build]
version = "0.14"
[target.'cfg(target_env = "gnu")'.dependencies.libc]
version = "0.2"