statsig-python-core 0.19.1b2604130314__tar.gz → 0.19.2b2604150312__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/Cargo.lock +7 -6
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/Cargo.toml +1 -1
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/PKG-INFO +1 -1
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/Cargo.toml +1 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/pyo_utils.rs +5 -7
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/statsig_user_py.rs +2 -2
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/Cargo.toml +3 -1
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/console_capture/console_capture_instances.rs +13 -4
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/lib.rs +4 -1
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/statsig_metadata.rs +1 -1
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/user/statsig_user.rs +8 -4
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/user/statsig_user_builder.rs +19 -25
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/user/statsig_user_internal.rs +10 -2
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/user/statsig_user_loggable.rs +71 -20
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/user/user_data.rs +15 -4
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/check_gate_tests.rs +4 -2
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/expected_evaluation_tests.rs +9 -3
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/exposure_sampling_key_tests.rs +14 -7
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_environment_tests.rs +6 -5
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_user_builder_tests.rs +11 -8
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +14 -5
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_user_loggable_tests.rs +57 -9
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_user_tests.rs +34 -6
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/__init__.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/data_store.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/error_boundary.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/observability_client.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/output_logger_provider.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/persistent_storage.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/py.typed +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/requirements.txt +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/statsig.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/statsig_python_core.pyi +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/py_src/statsig_python_core/statsig_types.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/pyproject.toml +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-grpc/Cargo.toml +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-grpc/README.md +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-grpc/build.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-grpc/src/lib.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-grpc/src/protos/statsig_forward_proxy.proto +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/.github/workflows/CI.yml +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/.gitignore +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/README.md +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/data_store_base_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/interned_store_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/lib.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/raw_evaluation_compat_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/safe_gil.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/statsig_base_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/statsig_options_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/statsig_types_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/unit_id_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/fork_runner.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/mock_output_logger.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/mock_scrapi.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/profile_util.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_data_store.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_error_boundary.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_experiment_serialization.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_feature_gate_serialization.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_forking.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_get_dynamic_config.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_interned_store_preload.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_layer_param_exposure_sampling.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_layer_serialization.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_observability_client.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_override_adapter.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_performance.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_shutdown.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_statsig.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_statsig_options.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_statsig_user.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_statsig_user_json_serialization.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_statsig_user_none_fields.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/test_user_exposure_e2e.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-pyo3/tests/utils.py +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/build.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/resources/ip_supalite.table +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/compression/compression_helper.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/compression/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/console_capture/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/data_store_interface.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/dcs_str.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/__tests__/rkyv_value_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/evaluator.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/rkyv_value.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_logger.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/exposure_sampling.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/flush_type.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/gcir/gcir_options.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/gcir/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/global_configs.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/hashing/ahash.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/hashing/djb2.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/hashing/hash_util.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/hashing/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/init_details.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/initialize_response.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/initialize_v2_response.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/instance_registry.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/interned_string.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/interned_values/__tests__/interned_store_eval_value_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/interned_values/__tests__/interned_store_returnable_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/interned_values/__tests__/interned_store_string_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/interned_values/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/interned_values/interned_store.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/interned_values/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/logging_utils.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/macros.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/http_types.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/network_client.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/network_error.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/providers/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/networking/proxy_config.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/observability/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/observability/ops_stats.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/output_logger.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/override_adapter/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/persistent_storage/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/spec_store.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_adapter/config_spec_background_sync_metrics.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_adapter/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_adapter/response_format.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/proto_specs.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/spec_types.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/specs_response/statsig_config_specs.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/statsig.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/statsig_core_api_options.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/statsig_err.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/statsig_global.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/statsig_options.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/statsig_runtime.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/statsig_type_factories.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/statsig_types.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/statsig_types_raw.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/user/into_optional.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/user/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/user/unit_id.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/src/utils/mod.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/big_number_dcs.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/company_id_list +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/dcs_error.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/dcs_non_case_sensitive.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/dcs_user_agent_versions.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/dcs_with_analytical_exposure_sampling.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/demo_proj_dcs.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/get_id_lists.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/perf_proj_dcs.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/test_user_agents.txt +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/ua_string_cases.json +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data_store_bytes_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data_store_json_bytes_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data_store_json_only_no_bytes_methods_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/data_store_proto_bytes_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/exposure_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/flushing_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/gcir_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/global_configs_test.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/instance_registry_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/list_methods_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/network_client_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/network_failure_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/observability_client_usage_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/output_logger_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/override_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/perf_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/proto_specs_usage_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/spec_store_lock_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/spec_types_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_global_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_options_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/typed_getters_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/user_json_tests.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/utils/env_var_guard.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/utils/helpers.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
- {statsig_python_core-0.19.1b2604130314 → statsig_python_core-0.19.2b2604150312}/statsig-rust/tests/utils/mod.rs +0 -0
|
@@ -2869,7 +2869,7 @@ dependencies = [
|
|
|
2869
2869
|
|
|
2870
2870
|
[[package]]
|
|
2871
2871
|
name = "sigstat-grpc"
|
|
2872
|
-
version = "0.19.
|
|
2872
|
+
version = "0.19.2-beta.2604150312"
|
|
2873
2873
|
dependencies = [
|
|
2874
2874
|
"async-trait",
|
|
2875
2875
|
"chrono",
|
|
@@ -2961,7 +2961,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
|
|
2961
2961
|
|
|
2962
2962
|
[[package]]
|
|
2963
2963
|
name = "statsig-node"
|
|
2964
|
-
version = "0.19.
|
|
2964
|
+
version = "0.19.2-beta.2604150312"
|
|
2965
2965
|
dependencies = [
|
|
2966
2966
|
"async-trait",
|
|
2967
2967
|
"napi",
|
|
@@ -2976,7 +2976,7 @@ dependencies = [
|
|
|
2976
2976
|
|
|
2977
2977
|
[[package]]
|
|
2978
2978
|
name = "statsig-pyo3"
|
|
2979
|
-
version = "0.19.
|
|
2979
|
+
version = "0.19.2-beta.2604150312"
|
|
2980
2980
|
dependencies = [
|
|
2981
2981
|
"async-trait",
|
|
2982
2982
|
"lazy_static",
|
|
@@ -2991,7 +2991,7 @@ dependencies = [
|
|
|
2991
2991
|
|
|
2992
2992
|
[[package]]
|
|
2993
2993
|
name = "statsig-rust"
|
|
2994
|
-
version = "0.19.
|
|
2994
|
+
version = "0.19.2-beta.2604150312"
|
|
2995
2995
|
dependencies = [
|
|
2996
2996
|
"ahash",
|
|
2997
2997
|
"arc-swap",
|
|
@@ -3006,6 +3006,7 @@ dependencies = [
|
|
|
3006
3006
|
"file-guard",
|
|
3007
3007
|
"flate2",
|
|
3008
3008
|
"futures",
|
|
3009
|
+
"indexmap 2.13.0",
|
|
3009
3010
|
"lazy_static",
|
|
3010
3011
|
"libc",
|
|
3011
3012
|
"log",
|
|
@@ -3040,7 +3041,7 @@ dependencies = [
|
|
|
3040
3041
|
|
|
3041
3042
|
[[package]]
|
|
3042
3043
|
name = "statsig_elixir"
|
|
3043
|
-
version = "0.19.
|
|
3044
|
+
version = "0.19.2-beta.2604150312"
|
|
3044
3045
|
dependencies = [
|
|
3045
3046
|
"async-trait",
|
|
3046
3047
|
"parking_lot",
|
|
@@ -3053,7 +3054,7 @@ dependencies = [
|
|
|
3053
3054
|
|
|
3054
3055
|
[[package]]
|
|
3055
3056
|
name = "statsig_ffi"
|
|
3056
|
-
version = "0.19.
|
|
3057
|
+
version = "0.19.2-beta.2604150312"
|
|
3057
3058
|
dependencies = [
|
|
3058
3059
|
"async-trait",
|
|
3059
3060
|
"cbindgen",
|
|
@@ -19,7 +19,7 @@ exclude = [
|
|
|
19
19
|
[workspace.package]
|
|
20
20
|
edition = "2021"
|
|
21
21
|
license = "ISC"
|
|
22
|
-
version = "0.19.
|
|
22
|
+
version = "0.19.2-beta.2604150312"
|
|
23
23
|
homepage = "https://statsig.com/"
|
|
24
24
|
authors = ["Statsig", "Daniel Loomb <daniel@statsig.com>"]
|
|
25
25
|
readme = "README.md"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: statsig_python_core
|
|
3
|
-
Version: 0.19.
|
|
3
|
+
Version: 0.19.2b2604150312
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -21,6 +21,7 @@ serde_json = { version = "1.0.125", features = ["float_roundtrip"] }
|
|
|
21
21
|
statsig-rust = { path = "../statsig-rust", features = [
|
|
22
22
|
"with_grpc",
|
|
23
23
|
"ffi-support",
|
|
24
|
+
"ordered_user_data_maps",
|
|
24
25
|
] }
|
|
25
26
|
async-trait = "0.1.81"
|
|
26
27
|
serde = { version = "1.0.204", features = ["derive"] }
|
|
@@ -6,7 +6,7 @@ use pyo3::types::{
|
|
|
6
6
|
use pyo3::{Bound, Py, PyAny, PyErr, PyResult, PyTypeCheck, Python};
|
|
7
7
|
use serde_json::{json, Number, Value};
|
|
8
8
|
use statsig_rust::evaluation::dynamic_string::DynamicString;
|
|
9
|
-
use statsig_rust::{log_e, log_w, DynamicValue};
|
|
9
|
+
use statsig_rust::{log_e, log_w, DynamicValue, StatsigUserDataMap};
|
|
10
10
|
use std::borrow::Cow;
|
|
11
11
|
use std::collections::HashMap;
|
|
12
12
|
|
|
@@ -234,9 +234,7 @@ pub fn py_any_to_dynamic_value(value: &Bound<PyAny>) -> PyResult<DynamicValue> {
|
|
|
234
234
|
|
|
235
235
|
// ------------------------------------------------------------------------------- [ Statsig User Creation ]
|
|
236
236
|
|
|
237
|
-
pub fn opt_py_dict_ref_to_hashmap(
|
|
238
|
-
data: Option<&Bound<'_, PyDict>>,
|
|
239
|
-
) -> Option<HashMap<String, DynamicValue>> {
|
|
237
|
+
pub fn opt_py_dict_ref_to_hashmap(data: Option<&Bound<'_, PyDict>>) -> Option<StatsigUserDataMap> {
|
|
240
238
|
let data = data?;
|
|
241
239
|
Some(py_dict_ref_to_hashmap(data))
|
|
242
240
|
}
|
|
@@ -278,8 +276,8 @@ fn py_any_ref_to_dynamic_value(value: &Bound<'_, PyAny>) -> Option<DynamicValue>
|
|
|
278
276
|
None
|
|
279
277
|
}
|
|
280
278
|
|
|
281
|
-
fn py_dict_ref_to_hashmap(dict: &Bound<'_, PyDict>) ->
|
|
282
|
-
let mut values =
|
|
279
|
+
fn py_dict_ref_to_hashmap(dict: &Bound<'_, PyDict>) -> StatsigUserDataMap {
|
|
280
|
+
let mut values = StatsigUserDataMap::with_capacity(dict.len());
|
|
283
281
|
|
|
284
282
|
for (key, value) in dict.iter() {
|
|
285
283
|
let dynamic_val = match py_any_ref_to_dynamic_value(&value) {
|
|
@@ -389,5 +387,5 @@ fn try_as_dict<'py>(value: &'py Bound<'py, PyAny>) -> Option<HashMap<String, Dyn
|
|
|
389
387
|
|
|
390
388
|
// SAFETY: This is what the "safe" version does internally, but its faster because we skip the Error creation
|
|
391
389
|
let pydict = unsafe { value.cast_unchecked::<PyDict>() };
|
|
392
|
-
Some(py_dict_ref_to_hashmap(pydict))
|
|
390
|
+
Some(py_dict_ref_to_hashmap(pydict).into_iter().collect())
|
|
393
391
|
}
|
|
@@ -6,7 +6,7 @@ use crate::{
|
|
|
6
6
|
use pyo3::types::PyBytes;
|
|
7
7
|
use pyo3::{prelude::*, types::PyDict};
|
|
8
8
|
use pyo3_stub_gen::derive::*;
|
|
9
|
-
use statsig_rust::{log_e, log_w, DynamicValue, StatsigUser, StatsigUserData};
|
|
9
|
+
use statsig_rust::{log_e, log_w, DynamicValue, StatsigUser, StatsigUserData, StatsigUserDataMap};
|
|
10
10
|
use std::{collections::HashMap, str};
|
|
11
11
|
|
|
12
12
|
const TAG: &str = stringify!(StatsigUserPy);
|
|
@@ -321,7 +321,7 @@ impl StatsigUserPy {
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
fn get_map_field_ref<'a>(
|
|
324
|
-
field: &'a Option<
|
|
324
|
+
field: &'a Option<StatsigUserDataMap>,
|
|
325
325
|
) -> Option<HashMap<&'a str, Option<ValidPrimitivesPyRef<'a>>>> {
|
|
326
326
|
let value = field.as_ref()?;
|
|
327
327
|
|
|
@@ -17,6 +17,7 @@ dashmap = "6.1.0"
|
|
|
17
17
|
file-guard = "0.2.0"
|
|
18
18
|
flate2 = "1.0.35"
|
|
19
19
|
futures = "0.3.30"
|
|
20
|
+
indexmap = { version = "2.13.0", features = ["serde"], optional = true }
|
|
20
21
|
lazy_static = "1.5.0"
|
|
21
22
|
log = "0.4.22"
|
|
22
23
|
parking_lot = "0.12.1"
|
|
@@ -39,7 +40,7 @@ serde_json = { version = "1.0.143", features = [
|
|
|
39
40
|
] }
|
|
40
41
|
serde_with = "3.4.0"
|
|
41
42
|
sha2 = "0.10.8"
|
|
42
|
-
sigstat-grpc = { path = "../statsig-grpc", version = "0.19.
|
|
43
|
+
sigstat-grpc = { path = "../statsig-grpc", version = "0.19.2-beta.2604150312", optional = true }
|
|
43
44
|
simple_logger = { version = "5.0.0" }
|
|
44
45
|
tempfile = "3.8.1"
|
|
45
46
|
tokio = { version = "1.39.1", features = ["full"] }
|
|
@@ -76,3 +77,4 @@ with_grpc = ["sigstat-grpc"]
|
|
|
76
77
|
testing = []
|
|
77
78
|
with_zstd = []
|
|
78
79
|
ffi-support = []
|
|
80
|
+
ordered_user_data_maps = ["dep:indexmap"]
|
|
@@ -8,8 +8,8 @@ use crate::console_capture::console_log_line_levels::StatsigLogLineLevel;
|
|
|
8
8
|
use parking_lot::RwLock;
|
|
9
9
|
|
|
10
10
|
use crate::{
|
|
11
|
-
log_e, observability::ops_stats::OpsStatsForInstance, user::
|
|
12
|
-
StatsigOptions, OPS_STATS,
|
|
11
|
+
log_e, observability::ops_stats::OpsStatsForInstance, user::user_data::UserDataMap,
|
|
12
|
+
user::StatsigUserLoggable, DynamicValue, StatsigOptions, OPS_STATS,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
const TAG: &str = stringify!(ConsoleCaptureRegistry);
|
|
@@ -51,12 +51,12 @@ impl ConsoleCaptureInstance {
|
|
|
51
51
|
let loggable_user = if let Some(console_capture_user) = console_capture_options.user {
|
|
52
52
|
StatsigUserLoggable::new(
|
|
53
53
|
&console_capture_user.data,
|
|
54
|
-
environment
|
|
54
|
+
to_user_data_map(environment),
|
|
55
55
|
statsig_options.global_custom_fields.clone(),
|
|
56
56
|
)
|
|
57
57
|
} else {
|
|
58
58
|
StatsigUserLoggable::default_console_capture_user(
|
|
59
|
-
environment
|
|
59
|
+
to_user_data_map(environment),
|
|
60
60
|
statsig_options.global_custom_fields.clone(),
|
|
61
61
|
)
|
|
62
62
|
};
|
|
@@ -74,6 +74,15 @@ impl ConsoleCaptureInstance {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
fn to_user_data_map(environment: &Option<HashMap<String, DynamicValue>>) -> Option<UserDataMap> {
|
|
78
|
+
environment.as_ref().map(|environment| {
|
|
79
|
+
environment
|
|
80
|
+
.iter()
|
|
81
|
+
.map(|(key, value)| (key.clone(), value.clone()))
|
|
82
|
+
.collect()
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
|
|
77
86
|
impl ConsoleCaptureRegistry {
|
|
78
87
|
pub fn get_for_instance(
|
|
79
88
|
&self,
|
|
@@ -29,7 +29,10 @@ pub use statsig_core_api_options::{
|
|
|
29
29
|
pub use statsig_err::StatsigErr;
|
|
30
30
|
pub use statsig_options::StatsigOptions;
|
|
31
31
|
pub use statsig_runtime::StatsigRuntime;
|
|
32
|
-
pub use user::user_data::
|
|
32
|
+
pub use user::user_data::{
|
|
33
|
+
UserData as StatsigUserData, UserDataMap as StatsigUserDataMap,
|
|
34
|
+
UserDataStringMap as StatsigUserDataStringMap,
|
|
35
|
+
};
|
|
33
36
|
pub use user::{StatsigUser, StatsigUserBuilder};
|
|
34
37
|
|
|
35
38
|
pub mod compression;
|
|
@@ -10,7 +10,7 @@ lazy_static! {
|
|
|
10
10
|
static ref STATSIG_METADATA: RwLock<StatsigMetadata> = RwLock::new(StatsigMetadata::new());
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
pub const SDK_VERSION: &str = "0.19.
|
|
13
|
+
pub const SDK_VERSION: &str = "0.19.2-beta.2604150312";
|
|
14
14
|
|
|
15
15
|
const TAG: &str = stringify!(StatsigMetadata);
|
|
16
16
|
|
|
@@ -3,7 +3,11 @@ use crate::statsig_metadata;
|
|
|
3
3
|
use crate::{dyn_value, evaluation::dynamic_string::DynamicString};
|
|
4
4
|
use std::{collections::HashMap, sync::Arc};
|
|
5
5
|
|
|
6
|
-
use super::{
|
|
6
|
+
use super::{
|
|
7
|
+
into_optional::IntoOptional,
|
|
8
|
+
unit_id::UnitID,
|
|
9
|
+
user_data::{UserData, UserDataMap},
|
|
10
|
+
};
|
|
7
11
|
|
|
8
12
|
#[derive(Clone)]
|
|
9
13
|
pub struct StatsigUser {
|
|
@@ -28,7 +32,7 @@ impl StatsigUser {
|
|
|
28
32
|
K: Into<String>,
|
|
29
33
|
U: Into<UnitID>,
|
|
30
34
|
{
|
|
31
|
-
let custom_ids:
|
|
35
|
+
let custom_ids: UserDataMap = custom_ids
|
|
32
36
|
.into_iter()
|
|
33
37
|
.map(|(k, v)| (k.into(), v.into().into()))
|
|
34
38
|
.collect();
|
|
@@ -75,7 +79,7 @@ macro_rules! string_field_accessor {
|
|
|
75
79
|
|
|
76
80
|
macro_rules! map_field_accessor {
|
|
77
81
|
($self:ident, $getter_name:ident, $setter_name:ident, $field:ident) => {
|
|
78
|
-
pub fn $getter_name(&self) -> Option<&
|
|
82
|
+
pub fn $getter_name(&self) -> Option<&UserDataMap> {
|
|
79
83
|
self.data.$field.as_ref()
|
|
80
84
|
}
|
|
81
85
|
|
|
@@ -194,7 +198,7 @@ impl StatsigUser {
|
|
|
194
198
|
}
|
|
195
199
|
};
|
|
196
200
|
|
|
197
|
-
let statsig_environment:
|
|
201
|
+
let statsig_environment: UserDataMap = statsig_environment
|
|
198
202
|
.into_iter()
|
|
199
203
|
.map(|(k, v)| (k.into(), v.into().into()))
|
|
200
204
|
.collect();
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
use super::unit_id::UnitID;
|
|
2
|
-
use super::user_data::UserData;
|
|
2
|
+
use super::user_data::{UserData, UserDataMap, UserDataMapOf, UserDataStringMap};
|
|
3
3
|
use super::StatsigUser;
|
|
4
4
|
use crate::dyn_value;
|
|
5
5
|
use crate::evaluation::dynamic_value::DynamicValue;
|
|
6
|
-
use std::collections::HashMap;
|
|
7
6
|
|
|
8
7
|
pub struct StatsigUserBuilder {
|
|
9
8
|
pub user_id: Option<UnitID>,
|
|
10
|
-
pub custom_ids: Option<
|
|
9
|
+
pub custom_ids: Option<UserDataMapOf<UnitID>>,
|
|
11
10
|
|
|
12
11
|
pub email: Option<DynamicValue>,
|
|
13
12
|
pub ip: Option<DynamicValue>,
|
|
@@ -16,10 +15,10 @@ pub struct StatsigUserBuilder {
|
|
|
16
15
|
pub locale: Option<DynamicValue>,
|
|
17
16
|
pub app_version: Option<DynamicValue>,
|
|
18
17
|
|
|
19
|
-
pub custom: Option<
|
|
20
|
-
pub private_attributes: Option<
|
|
18
|
+
pub custom: Option<UserDataMap>,
|
|
19
|
+
pub private_attributes: Option<UserDataMap>,
|
|
21
20
|
|
|
22
|
-
pub statsig_environment: Option<
|
|
21
|
+
pub statsig_environment: Option<UserDataMap>,
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
impl StatsigUserBuilder {
|
|
@@ -32,8 +31,9 @@ impl StatsigUserBuilder {
|
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
#[must_use]
|
|
35
|
-
pub fn new_with_custom_ids<K, U>(custom_ids:
|
|
34
|
+
pub fn new_with_custom_ids<K, U, I>(custom_ids: I) -> Self
|
|
36
35
|
where
|
|
36
|
+
I: IntoIterator<Item = (K, U)>,
|
|
37
37
|
K: Into<String>,
|
|
38
38
|
U: Into<UnitID>,
|
|
39
39
|
{
|
|
@@ -63,10 +63,12 @@ impl StatsigUserBuilder {
|
|
|
63
63
|
self
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
pub fn custom_ids(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
pub fn custom_ids<K, U, I>(mut self, custom_ids: Option<I>) -> Self
|
|
67
|
+
where
|
|
68
|
+
I: IntoIterator<Item = (K, U)>,
|
|
69
|
+
K: Into<String>,
|
|
70
|
+
U: Into<UnitID>,
|
|
71
|
+
{
|
|
70
72
|
if let Some(custom_ids) = custom_ids {
|
|
71
73
|
self.custom_ids = Some(
|
|
72
74
|
custom_ids
|
|
@@ -120,10 +122,7 @@ impl StatsigUserBuilder {
|
|
|
120
122
|
self
|
|
121
123
|
}
|
|
122
124
|
|
|
123
|
-
pub fn statsig_environment(
|
|
124
|
-
mut self,
|
|
125
|
-
statsig_environment: Option<HashMap<String, String>>,
|
|
126
|
-
) -> Self {
|
|
125
|
+
pub fn statsig_environment(mut self, statsig_environment: Option<UserDataStringMap>) -> Self {
|
|
127
126
|
if let Some(statsig_environment) = statsig_environment {
|
|
128
127
|
self.statsig_environment = Some(convert_str_map_to_dyn_values(statsig_environment));
|
|
129
128
|
}
|
|
@@ -131,14 +130,14 @@ impl StatsigUserBuilder {
|
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
// todo: support HashMap<String, String | Number | Boolean | Array<String>>
|
|
134
|
-
pub fn custom_from_str_map(mut self, custom: Option<
|
|
133
|
+
pub fn custom_from_str_map(mut self, custom: Option<UserDataStringMap>) -> Self {
|
|
135
134
|
if let Some(custom) = custom {
|
|
136
135
|
self.custom = Some(convert_str_map_to_dyn_values(custom));
|
|
137
136
|
}
|
|
138
137
|
self
|
|
139
138
|
}
|
|
140
139
|
|
|
141
|
-
pub fn custom(mut self, custom: Option<
|
|
140
|
+
pub fn custom(mut self, custom: Option<UserDataMap>) -> Self {
|
|
142
141
|
if let Some(custom) = custom {
|
|
143
142
|
self.custom = Some(custom);
|
|
144
143
|
}
|
|
@@ -148,7 +147,7 @@ impl StatsigUserBuilder {
|
|
|
148
147
|
// todo: support HashMap<String, String | Number | Boolean | Array<String>>
|
|
149
148
|
pub fn private_attributes_from_str_map(
|
|
150
149
|
mut self,
|
|
151
|
-
private_attributes: Option<
|
|
150
|
+
private_attributes: Option<UserDataStringMap>,
|
|
152
151
|
) -> Self {
|
|
153
152
|
if let Some(private_attributes) = private_attributes {
|
|
154
153
|
self.private_attributes = Some(convert_str_map_to_dyn_values(private_attributes));
|
|
@@ -156,10 +155,7 @@ impl StatsigUserBuilder {
|
|
|
156
155
|
self
|
|
157
156
|
}
|
|
158
157
|
|
|
159
|
-
pub fn private_attributes(
|
|
160
|
-
mut self,
|
|
161
|
-
private_attributes: Option<HashMap<String, DynamicValue>>,
|
|
162
|
-
) -> Self {
|
|
158
|
+
pub fn private_attributes(mut self, private_attributes: Option<UserDataMap>) -> Self {
|
|
163
159
|
if let Some(private_attributes) = private_attributes {
|
|
164
160
|
self.private_attributes = Some(private_attributes);
|
|
165
161
|
}
|
|
@@ -187,9 +183,7 @@ impl StatsigUserBuilder {
|
|
|
187
183
|
}
|
|
188
184
|
}
|
|
189
185
|
|
|
190
|
-
fn convert_str_map_to_dyn_values(
|
|
191
|
-
custom_ids: HashMap<String, String>,
|
|
192
|
-
) -> HashMap<String, DynamicValue> {
|
|
186
|
+
fn convert_str_map_to_dyn_values(custom_ids: UserDataStringMap) -> UserDataMap {
|
|
193
187
|
custom_ids
|
|
194
188
|
.into_iter()
|
|
195
189
|
.map(|(k, v)| (k, dyn_value!(v)))
|
|
@@ -3,7 +3,7 @@ use std::sync::atomic::{AtomicU64, Ordering};
|
|
|
3
3
|
|
|
4
4
|
use chrono::Utc;
|
|
5
5
|
|
|
6
|
-
use super::StatsigUserLoggable;
|
|
6
|
+
use super::{user_data::UserDataMap, StatsigUserLoggable};
|
|
7
7
|
use crate::evaluation::dynamic_value::DynamicValue;
|
|
8
8
|
use crate::hashing::djb2_number;
|
|
9
9
|
use crate::{evaluation::dynamic_string::DynamicString, Statsig};
|
|
@@ -141,7 +141,7 @@ impl<'statsig, 'user> StatsigUserInternal<'statsig, 'user> {
|
|
|
141
141
|
|
|
142
142
|
if let Some(statsig_instance) = &self.statsig_instance {
|
|
143
143
|
if environment.is_none() {
|
|
144
|
-
environment = statsig_instance.use_statsig_env(
|
|
144
|
+
environment = statsig_instance.use_statsig_env(hashmap_to_user_data_map);
|
|
145
145
|
}
|
|
146
146
|
global_custom = statsig_instance.use_global_custom_fields(|gc| gc.cloned());
|
|
147
147
|
}
|
|
@@ -172,6 +172,14 @@ impl<'statsig, 'user> StatsigUserInternal<'statsig, 'user> {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
fn hashmap_to_user_data_map(map: Option<&HashMap<String, DynamicValue>>) -> Option<UserDataMap> {
|
|
176
|
+
map.map(|map| {
|
|
177
|
+
map.iter()
|
|
178
|
+
.map(|(key, value)| (key.clone(), value.clone()))
|
|
179
|
+
.collect()
|
|
180
|
+
})
|
|
181
|
+
}
|
|
182
|
+
|
|
175
183
|
fn throttled_version_check(user: &StatsigUser) {
|
|
176
184
|
let current_version = statsig_metadata::SDK_VERSION;
|
|
177
185
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
use super::user_data::UserData;
|
|
1
|
+
use super::user_data::{UserData, UserDataMap};
|
|
2
2
|
use crate::{DynamicValue, StatsigUser};
|
|
3
|
-
use serde::{
|
|
3
|
+
use serde::{
|
|
4
|
+
ser::{SerializeMap, SerializeStruct},
|
|
5
|
+
Deserialize, Serialize,
|
|
6
|
+
};
|
|
4
7
|
use serde_json::Value;
|
|
5
8
|
use std::{collections::HashMap, sync::Arc};
|
|
6
9
|
|
|
@@ -9,14 +12,14 @@ const TAG: &str = "StatsigUserLoggable";
|
|
|
9
12
|
#[derive(Clone, Default)]
|
|
10
13
|
pub struct StatsigUserLoggable {
|
|
11
14
|
pub data: Arc<UserData>,
|
|
12
|
-
pub environment: Option<
|
|
15
|
+
pub environment: Option<UserDataMap>,
|
|
13
16
|
pub global_custom: Option<HashMap<String, DynamicValue>>,
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
impl StatsigUserLoggable {
|
|
17
20
|
pub fn new(
|
|
18
21
|
user_inner: &Arc<UserData>,
|
|
19
|
-
environment: Option<
|
|
22
|
+
environment: Option<UserDataMap>,
|
|
20
23
|
global_custom: Option<HashMap<String, DynamicValue>>,
|
|
21
24
|
) -> Self {
|
|
22
25
|
Self {
|
|
@@ -31,7 +34,7 @@ impl StatsigUserLoggable {
|
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
pub fn default_console_capture_user(
|
|
34
|
-
environment: Option<
|
|
37
|
+
environment: Option<UserDataMap>,
|
|
35
38
|
global_custom: Option<HashMap<String, DynamicValue>>,
|
|
36
39
|
) -> Self {
|
|
37
40
|
Self::new(
|
|
@@ -81,10 +84,9 @@ impl<'de> Deserialize<'de> for StatsigUserLoggable {
|
|
|
81
84
|
serde::de::Error::custom(format!("Error deserializing StatsigUserInner: {e}"))
|
|
82
85
|
})?;
|
|
83
86
|
|
|
84
|
-
let environment = serde_json::from_value::<Option<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
})?;
|
|
87
|
+
let environment = serde_json::from_value::<Option<UserDataMap>>(env).map_err(|e| {
|
|
88
|
+
serde::de::Error::custom(format!("Error deserializing StatsigUserInner: {e}"))
|
|
89
|
+
})?;
|
|
88
90
|
|
|
89
91
|
Ok(StatsigUserLoggable {
|
|
90
92
|
data: Arc::new(data),
|
|
@@ -111,7 +113,7 @@ where
|
|
|
111
113
|
|
|
112
114
|
fn serialize_custom_field<S>(
|
|
113
115
|
state: &mut S,
|
|
114
|
-
custom: &Option<
|
|
116
|
+
custom: &Option<UserDataMap>,
|
|
115
117
|
global_custom: &Option<HashMap<String, DynamicValue>>,
|
|
116
118
|
) -> Result<(), S::Error>
|
|
117
119
|
where
|
|
@@ -121,19 +123,68 @@ where
|
|
|
121
123
|
return Ok(());
|
|
122
124
|
}
|
|
123
125
|
|
|
124
|
-
|
|
126
|
+
state.serialize_field(
|
|
127
|
+
"custom",
|
|
128
|
+
&MergedCustomFields {
|
|
129
|
+
custom: custom.as_ref(),
|
|
130
|
+
global_custom: global_custom.as_ref(),
|
|
131
|
+
},
|
|
132
|
+
)
|
|
133
|
+
}
|
|
125
134
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
135
|
+
struct MergedCustomFields<'a> {
|
|
136
|
+
custom: Option<&'a UserDataMap>,
|
|
137
|
+
global_custom: Option<&'a HashMap<String, DynamicValue>>,
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
impl MergedCustomFields<'_> {
|
|
141
|
+
fn serialized_len(&self) -> usize {
|
|
142
|
+
let global_len = self.global_custom.map_or(0, HashMap::len);
|
|
143
|
+
let custom_only_len = self.custom.map_or(0, |custom| {
|
|
144
|
+
custom
|
|
145
|
+
.keys()
|
|
146
|
+
.filter(|key| {
|
|
147
|
+
!self
|
|
148
|
+
.global_custom
|
|
149
|
+
.is_some_and(|global_custom| global_custom.contains_key(*key))
|
|
150
|
+
})
|
|
151
|
+
.count()
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
global_len + custom_only_len
|
|
130
155
|
}
|
|
156
|
+
}
|
|
131
157
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
158
|
+
impl Serialize for MergedCustomFields<'_> {
|
|
159
|
+
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
|
|
160
|
+
where
|
|
161
|
+
S: serde::Serializer,
|
|
162
|
+
{
|
|
163
|
+
let mut map = serializer.serialize_map(Some(self.serialized_len()))?;
|
|
164
|
+
|
|
165
|
+
if let Some(global_custom) = self.global_custom {
|
|
166
|
+
for (key, global_value) in global_custom {
|
|
167
|
+
let value = self
|
|
168
|
+
.custom
|
|
169
|
+
.and_then(|custom| custom.get(key))
|
|
170
|
+
.unwrap_or(global_value);
|
|
171
|
+
map.serialize_entry(key, value)?;
|
|
172
|
+
}
|
|
135
173
|
}
|
|
136
|
-
}
|
|
137
174
|
|
|
138
|
-
|
|
175
|
+
if let Some(custom) = self.custom {
|
|
176
|
+
for (key, value) in custom {
|
|
177
|
+
if self
|
|
178
|
+
.global_custom
|
|
179
|
+
.is_some_and(|global_custom| global_custom.contains_key(key))
|
|
180
|
+
{
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
map.serialize_entry(key, value)?;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
map.end()
|
|
189
|
+
}
|
|
139
190
|
}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
use crate::{evaluation::dynamic_value::DynamicValue, hashing};
|
|
2
|
+
#[cfg(feature = "ordered_user_data_maps")]
|
|
3
|
+
use indexmap::IndexMap;
|
|
2
4
|
use serde::{Deserialize, Serialize};
|
|
3
5
|
use serde_with::skip_serializing_none;
|
|
6
|
+
#[cfg(not(feature = "ordered_user_data_maps"))]
|
|
4
7
|
use std::collections::HashMap;
|
|
5
8
|
|
|
9
|
+
#[cfg(feature = "ordered_user_data_maps")]
|
|
10
|
+
pub type UserDataMapOf<T> = IndexMap<String, T>;
|
|
11
|
+
#[cfg(not(feature = "ordered_user_data_maps"))]
|
|
12
|
+
pub type UserDataMapOf<T> = HashMap<String, T>;
|
|
13
|
+
|
|
14
|
+
pub type UserDataMap = UserDataMapOf<DynamicValue>;
|
|
15
|
+
pub type UserDataStringMap = UserDataMapOf<String>;
|
|
16
|
+
|
|
6
17
|
#[skip_serializing_none]
|
|
7
18
|
#[derive(Clone, Deserialize, Serialize, Default)]
|
|
8
19
|
#[serde(rename_all = "camelCase")]
|
|
@@ -10,7 +21,7 @@ pub struct UserData {
|
|
|
10
21
|
#[serde(rename = "userID")]
|
|
11
22
|
pub user_id: Option<DynamicValue>,
|
|
12
23
|
#[serde(rename = "customIDs")]
|
|
13
|
-
pub custom_ids: Option<
|
|
24
|
+
pub custom_ids: Option<UserDataMap>,
|
|
14
25
|
|
|
15
26
|
pub email: Option<DynamicValue>,
|
|
16
27
|
pub ip: Option<DynamicValue>,
|
|
@@ -18,11 +29,11 @@ pub struct UserData {
|
|
|
18
29
|
pub country: Option<DynamicValue>,
|
|
19
30
|
pub locale: Option<DynamicValue>,
|
|
20
31
|
pub app_version: Option<DynamicValue>,
|
|
21
|
-
pub statsig_environment: Option<
|
|
32
|
+
pub statsig_environment: Option<UserDataMap>,
|
|
22
33
|
|
|
23
34
|
#[serde(skip_serializing)]
|
|
24
|
-
pub private_attributes: Option<
|
|
25
|
-
pub custom: Option<
|
|
35
|
+
pub private_attributes: Option<UserDataMap>,
|
|
36
|
+
pub custom: Option<UserDataMap>,
|
|
26
37
|
}
|
|
27
38
|
|
|
28
39
|
impl UserData {
|
|
@@ -2,7 +2,9 @@ mod utils;
|
|
|
2
2
|
|
|
3
3
|
use crate::utils::mock_specs_adapter::MockSpecsAdapter;
|
|
4
4
|
use lazy_static::lazy_static;
|
|
5
|
-
use statsig_rust::{
|
|
5
|
+
use statsig_rust::{
|
|
6
|
+
dyn_value, Statsig, StatsigOptions, StatsigUser, StatsigUserBuilder, StatsigUserDataMap,
|
|
7
|
+
};
|
|
6
8
|
use std::collections::HashMap;
|
|
7
9
|
use std::sync::Arc;
|
|
8
10
|
use std::time::Instant;
|
|
@@ -12,7 +14,7 @@ lazy_static! {
|
|
|
12
14
|
"hubID".to_string(),
|
|
13
15
|
"some-service-123".to_string()
|
|
14
16
|
)]))
|
|
15
|
-
.custom(Some(
|
|
17
|
+
.custom(Some(StatsigUserDataMap::from([
|
|
16
18
|
("flavor".to_string(), dyn_value!("chocolate")),
|
|
17
19
|
("region".to_string(), dyn_value!("somewhere")),
|
|
18
20
|
("service".to_string(), dyn_value!("some-service")),
|
|
@@ -3,7 +3,7 @@ mod utils;
|
|
|
3
3
|
use crate::utils::mock_event_logging_adapter::MockEventLoggingAdapter;
|
|
4
4
|
use crate::utils::mock_specs_adapter::MockSpecsAdapter;
|
|
5
5
|
use statsig_rust::StatsigUserBuilder;
|
|
6
|
-
use statsig_rust::{dyn_value, Statsig, StatsigOptions, StatsigUser};
|
|
6
|
+
use statsig_rust::{dyn_value, Statsig, StatsigOptions, StatsigUser, StatsigUserDataMap};
|
|
7
7
|
use std::collections::HashMap;
|
|
8
8
|
use std::sync::Arc;
|
|
9
9
|
|
|
@@ -18,7 +18,10 @@ fn build_full_user() -> StatsigUser {
|
|
|
18
18
|
.email(Some("a_user@statsig.com".into()))
|
|
19
19
|
.country(Some("US".into()))
|
|
20
20
|
.user_id(Some("a_user".to_string()))
|
|
21
|
-
.custom(Some(
|
|
21
|
+
.custom(Some(StatsigUserDataMap::from([(
|
|
22
|
+
"level".to_string(),
|
|
23
|
+
dyn_value!(9),
|
|
24
|
+
)])))
|
|
22
25
|
.custom_ids(Some(HashMap::from([
|
|
23
26
|
("companyID", "123"),
|
|
24
27
|
("stableID", ""),
|
|
@@ -157,7 +160,10 @@ async fn test_custom_number_value_passes() {
|
|
|
157
160
|
let statsig = setup(None).await;
|
|
158
161
|
|
|
159
162
|
let user = StatsigUserBuilder::new_with_user_id("a_user".to_string())
|
|
160
|
-
.custom(Some(
|
|
163
|
+
.custom(Some(StatsigUserDataMap::from([(
|
|
164
|
+
"level".to_string(),
|
|
165
|
+
dyn_value!(9),
|
|
166
|
+
)])))
|
|
161
167
|
.build();
|
|
162
168
|
|
|
163
169
|
let gate_name = "test_any_with_number_value";
|