statsig-python-core 0.23.0__tar.gz → 0.23.1b2609160206__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.
Files changed (392) hide show
  1. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/Cargo.lock +6 -6
  2. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/Cargo.toml +1 -1
  3. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/PKG-INFO +1 -1
  4. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/Cargo.toml +1 -1
  5. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/queued_expo.rs +6 -1
  6. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/statsig_global.rs +25 -2
  7. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/statsig_metadata.rs +1 -1
  8. statsig_python_core-0.23.1b2609160206/statsig-rust/tests/cmab_exposure_rule_id_tests.rs +86 -0
  9. statsig_python_core-0.23.1b2609160206/statsig-rust/tests/data/dcs_cmab_exposure_rule_id.json +86 -0
  10. statsig_python_core-0.23.1b2609160206/statsig-rust/tests/statsig_global_tests.rs +236 -0
  11. statsig_python_core-0.23.0/statsig-rust/tests/statsig_global_tests.rs +0 -80
  12. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/__init__.py +0 -0
  13. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/data_store.py +0 -0
  14. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/error_boundary.py +0 -0
  15. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/observability_client.py +0 -0
  16. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/output_logger_provider.py +0 -0
  17. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/persistent_storage.py +0 -0
  18. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/py.typed +0 -0
  19. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/requirements.txt +0 -0
  20. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/statsig.py +0 -0
  21. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/statsig_python_core.pyi +0 -0
  22. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/py_src/statsig_python_core/statsig_types.py +0 -0
  23. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/pyproject.toml +0 -0
  24. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-grpc/Cargo.toml +0 -0
  25. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-grpc/README.md +0 -0
  26. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-grpc/build.rs +0 -0
  27. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-grpc/src/lib.rs +0 -0
  28. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-grpc/src/mock_forward_proxy.rs +0 -0
  29. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-grpc/src/protos/statsig_forward_proxy.proto +0 -0
  30. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-grpc/src/statsig_forward_proxy.rs +0 -0
  31. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-grpc/src/statsig_grpc_client.rs +0 -0
  32. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-grpc/src/statsig_grpc_err.rs +0 -0
  33. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/.github/workflows/CI.yml +0 -0
  34. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/.gitignore +0 -0
  35. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/Cargo.toml +0 -0
  36. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/README.md +0 -0
  37. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/bin/stub_gen.rs +0 -0
  38. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/data_store_base_py.rs +0 -0
  39. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/interned_store_py.rs +0 -0
  40. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/lib.rs +0 -0
  41. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/observability_client_base_py.rs +0 -0
  42. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/output_logger_provider_base_py.rs +0 -0
  43. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/pyo_utils.rs +0 -0
  44. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/raw_evaluation_compat_py.rs +0 -0
  45. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/safe_gil.rs +0 -0
  46. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/statsig_base_py.rs +0 -0
  47. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/statsig_metadata_py.rs +0 -0
  48. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/statsig_options_py.rs +0 -0
  49. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/statsig_persistent_storage_override_adapter_py.rs +0 -0
  50. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/statsig_types_py.rs +0 -0
  51. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/statsig_user_py.rs +0 -0
  52. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/unit_id_py.rs +0 -0
  53. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/src/valid_primitives_py.rs +0 -0
  54. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/data/enforce_sticky_dcs.json +0 -0
  55. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/fork_runner.py +0 -0
  56. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/mock_output_logger.py +0 -0
  57. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/mock_scrapi.py +0 -0
  58. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/profile_util.py +0 -0
  59. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/shutdown_sub_proc.py +0 -0
  60. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_data_store.py +0 -0
  61. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_enforce_sticky_values.py +0 -0
  62. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_error_boundary.py +0 -0
  63. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_experiment_group_targeting.py +0 -0
  64. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_experiment_serialization.py +0 -0
  65. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_exposure_logging.py +0 -0
  66. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_feature_gate_serialization.py +0 -0
  67. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_forking.py +0 -0
  68. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_get_autotune_list.py +0 -0
  69. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_get_dynamic_config.py +0 -0
  70. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_get_experiment_groups.py +0 -0
  71. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_get_layer_list.py +0 -0
  72. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_initialize_with_details.py +0 -0
  73. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_interned_store_preload.py +0 -0
  74. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_layer_param_exposure_sampling.py +0 -0
  75. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_layer_serialization.py +0 -0
  76. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_observability_client.py +0 -0
  77. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_output_logger_provider.py +0 -0
  78. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_override_adapter.py +0 -0
  79. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_performance.py +0 -0
  80. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_sdk_event_emitter.py +0 -0
  81. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_sec_expo_as_primary.py +0 -0
  82. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_shared_statsig.py +0 -0
  83. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_shutdown.py +0 -0
  84. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_statsig.py +0 -0
  85. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_statsig_options.py +0 -0
  86. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_statsig_user.py +0 -0
  87. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_statsig_user_json_serialization.py +0 -0
  88. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_statsig_user_none_fields.py +0 -0
  89. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_statsig_user_pickle.py +0 -0
  90. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/test_user_exposure_e2e.py +0 -0
  91. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-pyo3/tests/utils.py +0 -0
  92. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/build.rs +0 -0
  93. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/examples/eval_contention_bench.rs +0 -0
  94. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/examples/intern_contention_bench.rs +0 -0
  95. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/resources/ip_supalite.table +0 -0
  96. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/resources/ua_parser_regex.yaml +0 -0
  97. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/resources/ua_parser_regex_lite.yaml +0 -0
  98. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/__tests__/interned_string_tests.rs +0 -0
  99. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/__tests__/mod.rs +0 -0
  100. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/__tests__/spec_store_tests.rs +0 -0
  101. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/compression/compression_helper.rs +0 -0
  102. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/compression/mod.rs +0 -0
  103. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/console_capture/console_capture_handler.rs +0 -0
  104. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/console_capture/console_capture_instances.rs +0 -0
  105. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/console_capture/console_capture_options.rs +0 -0
  106. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/console_capture/console_log_line_levels.rs +0 -0
  107. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/console_capture/mod.rs +0 -0
  108. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/data_store_interface.rs +0 -0
  109. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/dcs_str.rs +0 -0
  110. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/__tests__/dynamic_returnable_tests.rs +0 -0
  111. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/__tests__/mod.rs +0 -0
  112. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/__tests__/rkyv_value_tests.rs +0 -0
  113. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/cmab_evaluator.rs +0 -0
  114. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/comparisons/compare_arrays.rs +0 -0
  115. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/comparisons/compare_numbers.rs +0 -0
  116. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/comparisons/compare_str_with_regex.rs +0 -0
  117. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/comparisons/compare_strings_in_array.rs +0 -0
  118. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/comparisons/compare_time.rs +0 -0
  119. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/comparisons/compare_versions.rs +0 -0
  120. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/comparisons/mod.rs +0 -0
  121. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/country_lookup.rs +0 -0
  122. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/dynamic_returnable.rs +0 -0
  123. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/dynamic_string.rs +0 -0
  124. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/dynamic_value.rs +0 -0
  125. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/evaluation_details.rs +0 -0
  126. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/evaluation_types.rs +0 -0
  127. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/evaluation_types_initialize_v2.rs +0 -0
  128. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/evaluation_types_v2.rs +0 -0
  129. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/evaluator.rs +0 -0
  130. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/evaluator_context.rs +0 -0
  131. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/evaluator_result.rs +0 -0
  132. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/evaluator_value.rs +0 -0
  133. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/get_unit_id.rs +0 -0
  134. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/mod.rs +0 -0
  135. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/rkyv_value.rs +0 -0
  136. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/secondary_exposure_key.rs +0 -0
  137. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/first_party_ua_parser.rs +0 -0
  138. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/mod.rs +0 -0
  139. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/mod.rs +0 -0
  140. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_helpers.rs +0 -0
  141. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_tokenizer.rs +0 -0
  142. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_browser.rs +0 -0
  143. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/__tests__/test_ua_parser_os.rs +0 -0
  144. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/mod.rs +0 -0
  145. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/tokenizer.rs +0 -0
  146. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/ua_parser.rs +0 -0
  147. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/statsig_uaparser/window_iter.rs +0 -0
  148. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/third_party_ua_parser.rs +0 -0
  149. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/evaluation/user_agent_parsing/ua_parser.rs +0 -0
  150. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_emitter/statsig_event_emitter_tests.rs +0 -0
  151. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_logger.rs +0 -0
  152. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_logger_constants.rs +0 -0
  153. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_logger_ops_stats.rs +0 -0
  154. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/batch.rs +0 -0
  155. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/mod.rs +0 -0
  156. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/queue.rs +0 -0
  157. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/queued_config_expo.rs +0 -0
  158. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/queued_event.rs +0 -0
  159. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/queued_experiment_expo.rs +0 -0
  160. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/queued_gate_expo.rs +0 -0
  161. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/queued_layer_param_expo.rs +0 -0
  162. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/queued_passthrough.rs +0 -0
  163. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/event_queue/queued_secondary_expo.rs +0 -0
  164. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/exposure_sampling.rs +0 -0
  165. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/exposure_utils.rs +0 -0
  166. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/flush_interval.rs +0 -0
  167. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/flush_type.rs +0 -0
  168. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/mod.rs +0 -0
  169. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/sec_expo_as_primary_experiment.rs +0 -0
  170. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/statsig_event.rs +0 -0
  171. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging/statsig_event_internal.rs +0 -0
  172. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging_adapter/event_logging_adapter_trait.rs +0 -0
  173. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging_adapter/log_event_payload.rs +0 -0
  174. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging_adapter/mod.rs +0 -0
  175. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging_adapter/statsig_http_event_logging_adapter.rs +0 -0
  176. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/event_logging_adapter/statsig_local_file_event_logging_adapter.rs +0 -0
  177. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/gcir/dynamic_configs_processor.rs +0 -0
  178. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/gcir/feature_gates_processor.rs +0 -0
  179. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/gcir/gcir_formatter.rs +0 -0
  180. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/gcir/gcir_options.rs +0 -0
  181. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/gcir/gcir_process_iter.rs +0 -0
  182. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/gcir/layer_configs_processor.rs +0 -0
  183. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/gcir/mod.rs +0 -0
  184. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/gcir/param_stores_processor.rs +0 -0
  185. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/gcir/stringify_sec_exposures.rs +0 -0
  186. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/gcir/target_app_id_utils.rs +0 -0
  187. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/global_configs.rs +0 -0
  188. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/hashing/ahash.rs +0 -0
  189. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/hashing/djb2.rs +0 -0
  190. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/hashing/hash_util.rs +0 -0
  191. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/hashing/memo_sha_256.rs +0 -0
  192. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/hashing/mod.rs +0 -0
  193. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/id_lists_adapter/id_list.rs +0 -0
  194. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/id_lists_adapter/id_lists_adapter_trait.rs +0 -0
  195. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/id_lists_adapter/mod.rs +0 -0
  196. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/id_lists_adapter/statsig_http_id_lists_adapter.rs +0 -0
  197. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/init_details.rs +0 -0
  198. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/initialize_evaluations_response.rs +0 -0
  199. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/initialize_response.rs +0 -0
  200. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/initialize_v2_response.rs +0 -0
  201. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/instance_registry.rs +0 -0
  202. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/interned_string.rs +0 -0
  203. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/interned_values/__tests__/interned_store_eval_value_tests.rs +0 -0
  204. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/interned_values/__tests__/interned_store_returnable_tests.rs +0 -0
  205. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/interned_values/__tests__/interned_store_string_tests.rs +0 -0
  206. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/interned_values/__tests__/mod.rs +0 -0
  207. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/interned_values/interned_store.rs +0 -0
  208. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/interned_values/mod.rs +0 -0
  209. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/lib.rs +0 -0
  210. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/logging_utils.rs +0 -0
  211. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/macros.rs +0 -0
  212. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/__tests__/mod.rs +0 -0
  213. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/__tests__/response_data_tests.rs +0 -0
  214. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/ca_bundle.rs +0 -0
  215. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/http_types.rs +0 -0
  216. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/mod.rs +0 -0
  217. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/network_client.rs +0 -0
  218. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/network_error.rs +0 -0
  219. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/providers/mod.rs +0 -0
  220. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/providers/net_provider_global.rs +0 -0
  221. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/providers/net_provider_noop.rs +0 -0
  222. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/providers/net_provider_reqwest.rs +0 -0
  223. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/networking/proxy_config.rs +0 -0
  224. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/observability/console_capture_observer.rs +0 -0
  225. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/observability/diagnostics_observer.rs +0 -0
  226. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/observability/mod.rs +0 -0
  227. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/observability/observability_client_adapter.rs +0 -0
  228. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/observability/ops_stats.rs +0 -0
  229. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/observability/sdk_errors_observer.rs +0 -0
  230. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/output_logger.rs +0 -0
  231. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/override_adapter/mod.rs +0 -0
  232. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/override_adapter/override_adapter_trait.rs +0 -0
  233. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/override_adapter/statsig_local_override_adapter.rs +0 -0
  234. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/persistent_storage/__tests__/mod.rs +0 -0
  235. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/persistent_storage/__tests__/sticky_values_serialization_tests.rs +0 -0
  236. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/persistent_storage/mod.rs +0 -0
  237. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/persistent_storage/persistent_storage_trait.rs +0 -0
  238. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/persistent_storage/persistent_values_manager.rs +0 -0
  239. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/sdk_diagnostics/diagnostics.rs +0 -0
  240. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/sdk_diagnostics/diagnostics_utils.rs +0 -0
  241. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/sdk_diagnostics/marker.rs +0 -0
  242. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/sdk_diagnostics/mod.rs +0 -0
  243. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/sdk_event_emitter/event_emitter.rs +0 -0
  244. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/sdk_event_emitter/event_emitter_tests.rs +0 -0
  245. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/sdk_event_emitter/event_types.rs +0 -0
  246. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/sdk_event_emitter/mod.rs +0 -0
  247. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/spec_store.rs +0 -0
  248. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_adapter/config_spec_background_sync_metrics.rs +0 -0
  249. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_adapter/mod.rs +0 -0
  250. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_adapter/response_format.rs +0 -0
  251. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_adapter/specs_adapter_trait.rs +0 -0
  252. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_adapter/statsig_bootstrap_specs_adapter.rs +0 -0
  253. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_adapter/statsig_customized_specs_adapter.rs +0 -0
  254. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_adapter/statsig_data_store_specs_adapter.rs +0 -0
  255. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_adapter/statsig_grpc_specs_adapter.rs +0 -0
  256. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_adapter/statsig_http_specs_adapter.rs +0 -0
  257. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_adapter/statsig_local_file_specs_adapter.rs +0 -0
  258. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/__tests__/mod.rs +0 -0
  259. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/__tests__/proto_specs_syncing_tests.rs +0 -0
  260. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/__tests__/proto_specs_unknown_tests.rs +0 -0
  261. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/__tests__/proto_specs_vs_json_tests.rs +0 -0
  262. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/__tests__/proto_stream_reader_tests.rs +0 -0
  263. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/cmab_types.rs +0 -0
  264. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/explicit_params.rs +0 -0
  265. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/mod.rs +0 -0
  266. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/param_store_types.rs +0 -0
  267. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/proto_specs.rs +0 -0
  268. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/proto_stream_reader.rs +0 -0
  269. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/spec_types.rs +0 -0
  270. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/specs_hash_map.rs +0 -0
  271. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/specs_response/statsig_config_specs.rs +0 -0
  272. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/statsig.rs +0 -0
  273. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/statsig_core_api_options.rs +0 -0
  274. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/statsig_err.rs +0 -0
  275. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/statsig_options.rs +0 -0
  276. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/statsig_runtime.rs +0 -0
  277. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/statsig_type_factories.rs +0 -0
  278. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/statsig_types.rs +0 -0
  279. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/statsig_types_raw.rs +0 -0
  280. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/user/into_optional.rs +0 -0
  281. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/user/mod.rs +0 -0
  282. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/user/statsig_user.rs +0 -0
  283. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/user/statsig_user_builder.rs +0 -0
  284. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/user/statsig_user_internal.rs +0 -0
  285. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/user/statsig_user_loggable.rs +0 -0
  286. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/user/unit_id.rs +0 -0
  287. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/user/user_data.rs +0 -0
  288. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/src/utils/mod.rs +0 -0
  289. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/check_gate_concurrency_bench.rs +0 -0
  290. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/check_gate_tests.rs +0 -0
  291. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/customized_specs_adapter_tests.rs +0 -0
  292. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/big_number_dcs.json +0 -0
  293. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/check_gate_perf_dcs.json +0 -0
  294. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/company_id_list +0 -0
  295. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/dcs_error.json +0 -0
  296. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/dcs_missing_gates.json +0 -0
  297. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/dcs_non_case_sensitive.json +0 -0
  298. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/dcs_target_app_filtering.json +0 -0
  299. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/dcs_target_app_filtering_hashed_keys.json +0 -0
  300. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/dcs_user_agent_versions.json +0 -0
  301. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/dcs_with_analytical_exposure_sampling.json +0 -0
  302. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/dcs_with_checksum.json +0 -0
  303. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/dcs_with_sampling.json +0 -0
  304. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/dcs_with_sdk_configs.json +0 -0
  305. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/demo_proj_dcs.json +0 -0
  306. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/demo_proj_dcs.pb.br +0 -0
  307. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/eval_proj_dcs.json +0 -0
  308. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/eval_proj_dcs.pb.br +0 -0
  309. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/get_id_lists.json +0 -0
  310. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/perf_proj_dcs.json +0 -0
  311. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/perf_proj_dcs.pb.br +0 -0
  312. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/shared_dict_dict_only.json +0 -0
  313. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/shared_dict_original_dcs.json +0 -0
  314. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/shared_dict_response_uncompressed.json +0 -0
  315. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/shared_dict_response_with_dict.json +0 -0
  316. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/shared_dict_response_without_dict.json +0 -0
  317. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/test_must_pass_user_agents.txt +0 -0
  318. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/test_user_agents.txt +0 -0
  319. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/ua_string_cases.json +0 -0
  320. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data/unknown_enum.pb.br +0 -0
  321. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data_store_bytes_adapter_tests.rs +0 -0
  322. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data_store_json_bytes_tests.rs +0 -0
  323. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data_store_json_only_no_bytes_methods_tests.rs +0 -0
  324. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data_store_lock_tests.rs +0 -0
  325. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/data_store_proto_bytes_tests.rs +0 -0
  326. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/direct_gcir_tests.rs +0 -0
  327. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/dynamic_string_tests.rs +0 -0
  328. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/dynamic_value_tests.rs +0 -0
  329. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/evaluation_details_tests.rs +0 -0
  330. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/evaluator_value_tests.rs +0 -0
  331. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/event_logger_failing_flush_tests.rs +0 -0
  332. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/event_logger_flush_tests.rs +0 -0
  333. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/event_logger_high_qps_tests.rs +0 -0
  334. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/event_logger_usage_tests.rs +0 -0
  335. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/expected_evaluation_tests.rs +0 -0
  336. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/exposure_sampling_key_tests.rs +0 -0
  337. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/exposure_tests.rs +0 -0
  338. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/flushing_tests.rs +0 -0
  339. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/gate_inversion_eval_tests.rs +0 -0
  340. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/gcir_target_app_tests.rs +0 -0
  341. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/gcir_tests.rs +0 -0
  342. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/global_configs_test.rs +0 -0
  343. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/grpc_specs_adapter_tests.rs +0 -0
  344. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/hash_util_evaluation_hash_tests.rs +0 -0
  345. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/http_specs_adapter_tests.rs +0 -0
  346. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/initialize_timeout_test.rs +0 -0
  347. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/instance_registry_tests.rs +0 -0
  348. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/layer_serialization_tests.rs +0 -0
  349. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/list_methods_tests.rs +0 -0
  350. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/memory_leak_per_request_users_tests.rs +0 -0
  351. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/network_client_streaming_tests.rs +0 -0
  352. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/network_client_tests.rs +0 -0
  353. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/network_failure_tests.rs +0 -0
  354. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/network_tls_tests.rs +0 -0
  355. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/observability_client_usage_tests.rs +0 -0
  356. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/output_logger_tests.rs +0 -0
  357. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/override_adapter_tests.rs +0 -0
  358. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/parameter_store_parameter_names_tests.rs +0 -0
  359. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/perf_tests.rs +0 -0
  360. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/persistent_storage_enforce_tests.rs +0 -0
  361. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/proto_specs_usage_tests.rs +0 -0
  362. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/spec_store_lock_tests.rs +0 -0
  363. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/spec_types_tests.rs +0 -0
  364. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_disable_network_tests.rs +0 -0
  365. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_environment_tests.rs +0 -0
  366. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_event_emitter_usage_test.rs +0 -0
  367. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_local_file_event_logging_adapter_tests.rs +0 -0
  368. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_local_file_specs_adapter_tests.rs +0 -0
  369. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_options_tests.rs +0 -0
  370. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_shared_tests.rs +0 -0
  371. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_tests.rs +0 -0
  372. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_user_builder_tests.rs +0 -0
  373. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_user_field_accessor_tests.rs +0 -0
  374. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_user_internal_tests.rs +0 -0
  375. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_user_loggable_tests.rs +0 -0
  376. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/statsig_user_tests.rs +0 -0
  377. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/syncing_network_failure_tests.rs +0 -0
  378. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/typed_getters_tests.rs +0 -0
  379. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/ua_parser_util_test.rs +0 -0
  380. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/user_agent_tests_first_party.rs +0 -0
  381. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/user_json_tests.rs +0 -0
  382. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/env_var_guard.rs +0 -0
  383. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/helpers.rs +0 -0
  384. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/mock_data_store.rs +0 -0
  385. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/mock_event_logging_adapter.rs +0 -0
  386. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/mock_log_provider.rs +0 -0
  387. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/mock_observability_client.rs +0 -0
  388. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/mock_scrapi.rs +0 -0
  389. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/mock_specs_adapter.rs +0 -0
  390. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/mock_specs_listener.rs +0 -0
  391. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/mod.rs +0 -0
  392. {statsig_python_core-0.23.0 → statsig_python_core-0.23.1b2609160206}/statsig-rust/tests/utils/tls_test_server.rs +0 -0
@@ -2987,7 +2987,7 @@ dependencies = [
2987
2987
 
2988
2988
  [[package]]
2989
2989
  name = "sigstat-grpc"
2990
- version = "0.23.0"
2990
+ version = "0.23.1-beta.2609160206"
2991
2991
  dependencies = [
2992
2992
  "async-trait",
2993
2993
  "chrono",
@@ -3079,7 +3079,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
3079
3079
 
3080
3080
  [[package]]
3081
3081
  name = "statsig-node"
3082
- version = "0.23.0"
3082
+ version = "0.23.1-beta.2609160206"
3083
3083
  dependencies = [
3084
3084
  "async-trait",
3085
3085
  "napi",
@@ -3094,7 +3094,7 @@ dependencies = [
3094
3094
 
3095
3095
  [[package]]
3096
3096
  name = "statsig-pyo3"
3097
- version = "0.23.0"
3097
+ version = "0.23.1-beta.2609160206"
3098
3098
  dependencies = [
3099
3099
  "async-trait",
3100
3100
  "lazy_static",
@@ -3109,7 +3109,7 @@ dependencies = [
3109
3109
 
3110
3110
  [[package]]
3111
3111
  name = "statsig-rust"
3112
- version = "0.23.0"
3112
+ version = "0.23.1-beta.2609160206"
3113
3113
  dependencies = [
3114
3114
  "ahash",
3115
3115
  "arc-swap",
@@ -3163,7 +3163,7 @@ dependencies = [
3163
3163
 
3164
3164
  [[package]]
3165
3165
  name = "statsig_elixir"
3166
- version = "0.23.0"
3166
+ version = "0.23.1-beta.2609160206"
3167
3167
  dependencies = [
3168
3168
  "async-trait",
3169
3169
  "parking_lot",
@@ -3176,7 +3176,7 @@ dependencies = [
3176
3176
 
3177
3177
  [[package]]
3178
3178
  name = "statsig_ffi"
3179
- version = "0.23.0"
3179
+ version = "0.23.1-beta.2609160206"
3180
3180
  dependencies = [
3181
3181
  "async-trait",
3182
3182
  "cbindgen",
@@ -19,7 +19,7 @@ exclude = [
19
19
  [workspace.package]
20
20
  edition = "2021"
21
21
  license = "ISC"
22
- version = "0.23.0"
22
+ version = "0.23.1-beta.2609160206"
23
23
  homepage = "https://statsig.com/"
24
24
  authors = ["Statsig"]
25
25
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statsig_python_core
3
- Version: 0.23.0
3
+ Version: 0.23.1b2609160206
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -44,7 +44,7 @@ serde_json = { version = "1.0.143", features = [
44
44
  ] }
45
45
  serde_with = "3.4.0"
46
46
  sha2 = "0.10.8"
47
- sigstat-grpc = { path = "../statsig-grpc", version = "0.23.0", optional = true }
47
+ sigstat-grpc = { path = "../statsig-grpc", version = "0.23.1-beta.2609160206", optional = true }
48
48
  simple_logger = { version = "5.0.0" }
49
49
  tempfile = "3.8.1"
50
50
  tokio = { version = "1.39.1", features = ["full"] }
@@ -201,7 +201,12 @@ impl<'a> EnqueueExposureOp<'a> {
201
201
  if let Some(result) = result {
202
202
  data.exposure_info = Some(result_to_extra_exposure_info(&result));
203
203
 
204
- data.rule_id = result.rule_id;
204
+ data.rule_id = match result.rule_id_suffix {
205
+ Some(suffix) => result.rule_id.as_ref().map(|rule_id| {
206
+ InternedString::from_str_parts(&[rule_id.as_str(), ":", suffix])
207
+ }),
208
+ None => result.rule_id,
209
+ };
205
210
  data.version = result.version;
206
211
  data.override_spec_name = result.override_config_name;
207
212
  data.secondary_exposures = Some(result.secondary_exposures);
@@ -1,8 +1,8 @@
1
- use crate::log_d;
1
+ use crate::{log_d, log_e};
2
2
  use arc_swap::ArcSwap;
3
3
  use parking_lot::Mutex;
4
4
  use std::sync::{Arc, OnceLock};
5
- use tokio::runtime::Runtime;
5
+ use tokio::runtime::{Handle, Runtime};
6
6
 
7
7
  const TAG: &str = "StatsigGlobal";
8
8
 
@@ -40,6 +40,29 @@ impl StatsigGlobal {
40
40
  ptr.store(Arc::new(StatsigGlobal::new()));
41
41
  }
42
42
 
43
+ /// Stops the shared tokio runtime, joining its worker threads.
44
+ ///
45
+ /// Per-instance shutdown deliberately leaves the shared runtime running so
46
+ /// later instances can reuse it. Callers that unload this library while the
47
+ /// process keeps running need those threads gone first, and this is the
48
+ /// only thing that stops them.
49
+ ///
50
+ /// Returns false without resetting when called from a runtime thread.
51
+ /// Dropping a runtime from inside itself panics, and binding teardown can
52
+ /// reach this from one, so the guard lives here rather than in callers.
53
+ pub fn shutdown_shared_runtime() -> bool {
54
+ if Handle::try_current().is_ok() {
55
+ log_e!(
56
+ TAG,
57
+ "Refusing to shut down the shared runtime from inside a runtime thread"
58
+ );
59
+ return false;
60
+ }
61
+
62
+ Self::reset();
63
+ true
64
+ }
65
+
43
66
  fn new() -> Self {
44
67
  Self {
45
68
  tokio_runtime: Mutex::new(None),
@@ -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.23.0";
13
+ pub const SDK_VERSION: &str = "0.23.1-beta.2609160206";
14
14
 
15
15
  const TAG: &str = stringify!(StatsigMetadata);
16
16
 
@@ -0,0 +1,86 @@
1
+ mod utils;
2
+
3
+ use std::sync::Arc;
4
+
5
+ #[cfg(feature = "ffi-support")]
6
+ use serde_json::Value;
7
+ #[cfg(feature = "ffi-support")]
8
+ use statsig_rust::ExperimentEvaluationOptions;
9
+ use statsig_rust::{Statsig, StatsigOptions, StatsigUser};
10
+ use utils::{
11
+ mock_event_logging_adapter::MockEventLoggingAdapter, mock_specs_adapter::MockSpecsAdapter,
12
+ };
13
+
14
+ const DCS_PATH: &str = "tests/data/dcs_cmab_exposure_rule_id.json";
15
+
16
+ async fn setup() -> (Statsig, Arc<MockEventLoggingAdapter>) {
17
+ let event_logging_adapter = Arc::new(MockEventLoggingAdapter::new());
18
+ let mut options = StatsigOptions::new();
19
+ options.specs_adapter = Some(Arc::new(MockSpecsAdapter::with_data(DCS_PATH)));
20
+ options.event_logging_adapter = Some(event_logging_adapter.clone());
21
+
22
+ let statsig = Statsig::new("secret-cmab-rule-id-test", Some(Arc::new(options)));
23
+ statsig.initialize().await.unwrap();
24
+
25
+ (statsig, event_logging_adapter)
26
+ }
27
+
28
+ fn get_logged_rule_id(adapter: &MockEventLoggingAdapter) -> String {
29
+ adapter.force_get_first_event()["metadata"]["ruleID"]
30
+ .as_str()
31
+ .unwrap()
32
+ .to_string()
33
+ }
34
+
35
+ #[tokio::test]
36
+ async fn typed_cmab_exposure_preserves_explore_suffix() {
37
+ let (statsig, adapter) = setup().await;
38
+ let user = StatsigUser::with_user_id("typed-explore-user".to_string());
39
+
40
+ let experiment = statsig.get_experiment(&user, "cmab_always_explore");
41
+ let returned_rule_id = experiment.rule_id.clone();
42
+ statsig.shutdown().await.unwrap();
43
+
44
+ assert!(returned_rule_id.ends_with(":explore"));
45
+ assert_eq!(get_logged_rule_id(&adapter), returned_rule_id);
46
+ }
47
+
48
+ #[tokio::test]
49
+ #[cfg(feature = "ffi-support")]
50
+ async fn raw_ffi_cmab_exposure_preserves_explore_suffix() {
51
+ let (statsig, adapter) = setup().await;
52
+ let user = StatsigUser::with_user_id("raw-explore-user".to_string());
53
+
54
+ let raw_json = statsig.use_raw_experiment_with_options(
55
+ &user,
56
+ "cmab_always_explore",
57
+ ExperimentEvaluationOptions::default(),
58
+ |raw| raw.unperformant_to_json_string(),
59
+ );
60
+ let raw: Value = serde_json::from_str(&raw_json).unwrap();
61
+ let returned_rule_id = raw["ruleID"].as_str().unwrap().to_string();
62
+ statsig.shutdown().await.unwrap();
63
+
64
+ assert!(returned_rule_id.ends_with(":explore"));
65
+ assert_eq!(get_logged_rule_id(&adapter), returned_rule_id);
66
+ }
67
+
68
+ #[tokio::test]
69
+ #[cfg(feature = "ffi-support")]
70
+ async fn raw_ffi_cmab_exploit_rule_id_remains_bare() {
71
+ let (statsig, adapter) = setup().await;
72
+ let user = StatsigUser::with_user_id("raw-exploit-user".to_string());
73
+
74
+ let raw_json = statsig.use_raw_experiment_with_options(
75
+ &user,
76
+ "cmab_never_explore",
77
+ ExperimentEvaluationOptions::default(),
78
+ |raw| raw.unperformant_to_json_string(),
79
+ );
80
+ let raw: Value = serde_json::from_str(&raw_json).unwrap();
81
+ let returned_rule_id = raw["ruleID"].as_str().unwrap().to_string();
82
+ statsig.shutdown().await.unwrap();
83
+
84
+ assert_eq!(returned_rule_id, "treatment-group-id");
85
+ assert_eq!(get_logged_rule_id(&adapter), returned_rule_id);
86
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "dynamic_configs": {},
3
+ "feature_gates": {},
4
+ "layer_configs": {},
5
+ "cmab_configs": {
6
+ "cmab_always_explore": {
7
+ "salt": "cmab-always-explore-salt",
8
+ "defaultValue": {"arm": "default"},
9
+ "idType": "userID",
10
+ "enabled": true,
11
+ "version": 1,
12
+ "sampleRate": 1.0,
13
+ "higherIsBetter": true,
14
+ "groups": [
15
+ {
16
+ "name": "control",
17
+ "parameterValues": {"arm": "control"},
18
+ "id": "control-group-id"
19
+ },
20
+ {
21
+ "name": "treatment",
22
+ "parameterValues": {"arm": "treatment"},
23
+ "id": "treatment-group-id"
24
+ }
25
+ ],
26
+ "config": {
27
+ "control-group-id": {
28
+ "alpha": 1.0,
29
+ "intercept": 0.0,
30
+ "records": 1,
31
+ "weightsNumerical": {"unused": 0.0},
32
+ "weightsCategorical": {}
33
+ },
34
+ "treatment-group-id": {
35
+ "alpha": 1.0,
36
+ "intercept": 1.0,
37
+ "records": 1,
38
+ "weightsNumerical": {"unused": 0.0},
39
+ "weightsCategorical": {}
40
+ }
41
+ }
42
+ },
43
+ "cmab_never_explore": {
44
+ "salt": "cmab-never-explore-salt",
45
+ "defaultValue": {"arm": "default"},
46
+ "idType": "userID",
47
+ "enabled": true,
48
+ "version": 1,
49
+ "sampleRate": 0.0,
50
+ "higherIsBetter": true,
51
+ "groups": [
52
+ {
53
+ "name": "control",
54
+ "parameterValues": {"arm": "control"},
55
+ "id": "control-group-id"
56
+ },
57
+ {
58
+ "name": "treatment",
59
+ "parameterValues": {"arm": "treatment"},
60
+ "id": "treatment-group-id"
61
+ }
62
+ ],
63
+ "config": {
64
+ "control-group-id": {
65
+ "alpha": 1.0,
66
+ "intercept": 0.0,
67
+ "records": 1,
68
+ "weightsNumerical": {"unused": 0.0},
69
+ "weightsCategorical": {}
70
+ },
71
+ "treatment-group-id": {
72
+ "alpha": 1.0,
73
+ "intercept": 1.0,
74
+ "records": 1,
75
+ "weightsNumerical": {"unused": 0.0},
76
+ "weightsCategorical": {}
77
+ }
78
+ }
79
+ }
80
+ },
81
+ "condition_map": {},
82
+ "experiment_to_layer": {},
83
+ "param_stores": {},
84
+ "time": 1,
85
+ "has_updates": true
86
+ }
@@ -0,0 +1,236 @@
1
+ use serial_test::serial;
2
+ use statsig_rust::{statsig_global::StatsigGlobal, StatsigRuntime};
3
+ use std::collections::HashSet;
4
+ use std::sync::atomic::{AtomicUsize, Ordering};
5
+ use std::sync::mpsc;
6
+ use std::thread::ThreadId;
7
+ use std::time::{Duration, Instant};
8
+
9
+ fn is_runtime_none() -> bool {
10
+ let global = StatsigGlobal::get();
11
+ let rt = &global.tokio_runtime;
12
+ let lock_result = rt.try_lock().expect("Failed to lock tokio runtime");
13
+ lock_result.is_none()
14
+ }
15
+
16
+ fn is_runtime_some() -> bool {
17
+ let global = StatsigGlobal::get();
18
+ let rt = &global.tokio_runtime;
19
+ let lock_result = rt.try_lock().expect("Failed to lock tokio runtime");
20
+ lock_result.is_some()
21
+ }
22
+
23
+ static WORKERS_EXITED: AtomicUsize = AtomicUsize::new(0);
24
+
25
+ struct ExitRecorder;
26
+
27
+ impl Drop for ExitRecorder {
28
+ fn drop(&mut self) {
29
+ WORKERS_EXITED.fetch_add(1, Ordering::SeqCst);
30
+ }
31
+ }
32
+
33
+ thread_local! {
34
+ /// Initialized on every worker thread that runs a task below, so each one
35
+ /// reports itself when it exits. Portable stand-in for counting OS threads.
36
+ static EXIT_RECORDER: ExitRecorder = const { ExitRecorder };
37
+ }
38
+
39
+ /// Runs work on the shared runtime until every worker thread has been used,
40
+ /// and returns the set of threads that ran it. Each of those threads now has
41
+ /// an `ExitRecorder` that fires when the thread terminates.
42
+ fn occupy_worker_threads(runtime: &StatsigRuntime) -> HashSet<ThreadId> {
43
+ let handle = runtime.get_handle().expect("Failed to get runtime handle");
44
+ let (tx, rx) = mpsc::channel::<ThreadId>();
45
+
46
+ for _ in 0..40 {
47
+ let tx = tx.clone();
48
+ handle.spawn(async move {
49
+ EXIT_RECORDER.with(|_| {});
50
+ let _ = tx.send(std::thread::current().id());
51
+ // Hold the worker so the pool spreads the remaining tasks around.
52
+ std::thread::sleep(Duration::from_millis(20));
53
+ });
54
+ }
55
+ drop(tx);
56
+
57
+ let mut threads = HashSet::new();
58
+ while let Ok(id) = rx.recv_timeout(Duration::from_secs(10)) {
59
+ threads.insert(id);
60
+ }
61
+
62
+ threads
63
+ }
64
+
65
+ fn wait_for(timeout: Duration, condition: impl Fn() -> bool) -> bool {
66
+ let deadline = Instant::now() + timeout;
67
+ while Instant::now() < deadline {
68
+ if condition() {
69
+ return true;
70
+ }
71
+ std::thread::sleep(Duration::from_millis(10));
72
+ }
73
+ condition()
74
+ }
75
+
76
+ #[test]
77
+ #[serial]
78
+ fn test_get_runtime() {
79
+ let global = StatsigGlobal::get();
80
+ let global_again = StatsigGlobal::get();
81
+
82
+ assert_eq!(global.pid, global_again.pid);
83
+ }
84
+
85
+ #[test]
86
+ #[serial]
87
+ fn test_fork_resetting_runtime() {
88
+ let global = StatsigGlobal::get();
89
+ let original_pid = global.pid;
90
+
91
+ assert!(is_runtime_none());
92
+
93
+ let original_rt = StatsigRuntime::get_runtime();
94
+ assert_eq!(original_pid, std::process::id());
95
+
96
+ original_rt
97
+ .spawn("test", |_| async {
98
+ tokio::time::sleep(Duration::from_secs(5)).await;
99
+ })
100
+ .unwrap();
101
+
102
+ assert!(is_runtime_some());
103
+
104
+ let pid = unsafe { libc::fork() };
105
+ if pid == 0 {
106
+ let child_global = StatsigGlobal::get();
107
+ assert_ne!(child_global.pid, original_pid);
108
+
109
+ assert!(is_runtime_none());
110
+
111
+ let child_rt = StatsigRuntime::get_runtime();
112
+ child_rt
113
+ .spawn("test", |_| async {
114
+ tokio::time::sleep(std::time::Duration::from_secs(5)).await;
115
+ })
116
+ .unwrap();
117
+
118
+ assert!(is_runtime_some());
119
+
120
+ std::process::exit(0);
121
+ }
122
+
123
+ let global = StatsigGlobal::get();
124
+ assert_eq!(global.pid, original_pid);
125
+
126
+ unsafe {
127
+ let mut status: i32 = 0;
128
+ libc::waitpid(pid, &mut status, 0);
129
+ assert_eq!(libc::WEXITSTATUS(status), 0);
130
+ };
131
+
132
+ let another_rt = StatsigRuntime::get_runtime();
133
+ another_rt.shutdown();
134
+ drop(another_rt);
135
+
136
+ assert!(
137
+ is_runtime_some(),
138
+ "Per-instance shutdown must leave the shared runtime for the next instance. \
139
+ StatsigGlobal::shutdown_shared_runtime is what stops it."
140
+ );
141
+
142
+ StatsigGlobal::shutdown_shared_runtime();
143
+ }
144
+
145
+ #[test]
146
+ #[serial]
147
+ fn test_shutdown_shared_runtime_stops_worker_threads() {
148
+ StatsigGlobal::shutdown_shared_runtime();
149
+ WORKERS_EXITED.store(0, Ordering::SeqCst);
150
+
151
+ let rt = StatsigRuntime::get_runtime();
152
+ let workers = occupy_worker_threads(&rt);
153
+
154
+ assert!(
155
+ !workers.is_empty(),
156
+ "No worker threads ran, so nothing was observed"
157
+ );
158
+ assert_eq!(
159
+ WORKERS_EXITED.load(Ordering::SeqCst),
160
+ 0,
161
+ "Worker threads exited while the runtime was still in use"
162
+ );
163
+
164
+ // The most complete teardown a binding can do per instance.
165
+ rt.shutdown();
166
+ drop(rt);
167
+
168
+ assert!(
169
+ !wait_for(Duration::from_millis(500), || WORKERS_EXITED
170
+ .load(Ordering::SeqCst)
171
+ > 0),
172
+ "Per-instance shutdown stopped shared worker threads. \
173
+ Bindings rely on the shared runtime surviving it."
174
+ );
175
+ assert!(is_runtime_some());
176
+
177
+ // This is what a binding must call before the library is unloaded. PHP
178
+ // unloads it at the end of every request, and on Windows that unmaps the
179
+ // module while these threads are still running inside it.
180
+ assert!(StatsigGlobal::shutdown_shared_runtime());
181
+
182
+ assert!(
183
+ wait_for(Duration::from_secs(5), || WORKERS_EXITED
184
+ .load(Ordering::SeqCst)
185
+ >= workers.len()),
186
+ "Only {} of {} worker threads exited. Threads that outlive the library \
187
+ fault when the module is unmapped.",
188
+ WORKERS_EXITED.load(Ordering::SeqCst),
189
+ workers.len()
190
+ );
191
+ assert!(is_runtime_none());
192
+ }
193
+
194
+ #[test]
195
+ #[serial]
196
+ fn test_shutdown_shared_runtime_is_idempotent_and_safe_when_unused() {
197
+ StatsigGlobal::shutdown_shared_runtime();
198
+
199
+ // Never initialized, and repeated calls.
200
+ assert!(StatsigGlobal::shutdown_shared_runtime());
201
+ assert!(StatsigGlobal::shutdown_shared_runtime());
202
+ assert!(is_runtime_none());
203
+
204
+ let rt = StatsigRuntime::get_runtime();
205
+ assert!(is_runtime_some());
206
+ drop(rt);
207
+
208
+ assert!(StatsigGlobal::shutdown_shared_runtime());
209
+ assert!(StatsigGlobal::shutdown_shared_runtime());
210
+ assert!(is_runtime_none());
211
+ }
212
+
213
+ #[test]
214
+ #[serial]
215
+ fn test_shutdown_shared_runtime_refuses_from_inside_a_runtime_thread() {
216
+ StatsigGlobal::shutdown_shared_runtime();
217
+
218
+ let rt = StatsigRuntime::get_runtime();
219
+ let handle = rt.get_handle().expect("Failed to get runtime handle");
220
+
221
+ // Dropping a runtime from inside itself panics. PHP's teardown made this
222
+ // reachable, so the guard has to hold rather than relying on callers.
223
+ let reset_from_worker = handle.block_on(async { StatsigGlobal::shutdown_shared_runtime() });
224
+
225
+ assert!(
226
+ !reset_from_worker,
227
+ "Shared runtime was reset from inside a runtime thread"
228
+ );
229
+ assert!(
230
+ is_runtime_some(),
231
+ "The runtime was dropped from inside itself"
232
+ );
233
+
234
+ drop(rt);
235
+ StatsigGlobal::shutdown_shared_runtime();
236
+ }
@@ -1,80 +0,0 @@
1
- use serial_test::serial;
2
- use statsig_rust::{statsig_global::StatsigGlobal, StatsigRuntime};
3
- use std::time::Duration;
4
-
5
- fn is_runtime_none() -> bool {
6
- let global = StatsigGlobal::get();
7
- let rt = &global.tokio_runtime;
8
- let lock_result = rt.try_lock().expect("Failed to lock tokio runtime");
9
- lock_result.is_none()
10
- }
11
-
12
- fn is_runtime_some() -> bool {
13
- let global = StatsigGlobal::get();
14
- let rt = &global.tokio_runtime;
15
- let lock_result = rt.try_lock().expect("Failed to lock tokio runtime");
16
- lock_result.is_some()
17
- }
18
-
19
- #[test]
20
- #[serial]
21
- fn test_get_runtime() {
22
- let global = StatsigGlobal::get();
23
- let global_again = StatsigGlobal::get();
24
-
25
- assert_eq!(global.pid, global_again.pid);
26
- }
27
-
28
- #[test]
29
- #[serial]
30
- fn test_fork_resetting_runtime() {
31
- let global = StatsigGlobal::get();
32
- let original_pid = global.pid;
33
-
34
- assert!(is_runtime_none());
35
-
36
- let original_rt = StatsigRuntime::get_runtime();
37
- assert_eq!(original_pid, std::process::id());
38
-
39
- original_rt
40
- .spawn("test", |_| async {
41
- tokio::time::sleep(Duration::from_secs(5)).await;
42
- })
43
- .unwrap();
44
-
45
- assert!(is_runtime_some());
46
-
47
- let pid = unsafe { libc::fork() };
48
- if pid == 0 {
49
- let child_global = StatsigGlobal::get();
50
- assert_ne!(child_global.pid, original_pid);
51
-
52
- assert!(is_runtime_none());
53
-
54
- let child_rt = StatsigRuntime::get_runtime();
55
- child_rt
56
- .spawn("test", |_| async {
57
- tokio::time::sleep(std::time::Duration::from_secs(5)).await;
58
- })
59
- .unwrap();
60
-
61
- assert!(is_runtime_some());
62
-
63
- std::process::exit(0);
64
- }
65
-
66
- let global = StatsigGlobal::get();
67
- assert_eq!(global.pid, original_pid);
68
-
69
- unsafe {
70
- let mut status: i32 = 0;
71
- libc::waitpid(pid, &mut status, 0);
72
- assert_eq!(libc::WEXITSTATUS(status), 0);
73
- };
74
-
75
- let another_rt = StatsigRuntime::get_runtime();
76
- another_rt.shutdown();
77
- drop(another_rt);
78
-
79
- assert!(is_runtime_some(), "The runtime should not be dropped");
80
- }