Commit 035fcc1
feat(flagd): add native Rust-based WasmInProcessResolver
Implement WasmInProcessResolver that uses the native flagd-evaluator
(PyO3/Rust) for high-performance in-process flag evaluation. This
replaces the pure-Python implementation with compiled Rust code for
significant performance improvements.
Key changes:
- Add WasmInProcessResolver using FlagEvaluator from flagd-evaluator
- All flag state management now handled in Rust (not Python FlagStore)
- Refactored resolve methods to use single _resolve_flag() generic method
- Type validation via clean lambda functions for each type
- Proper reason and error code mapping from Rust to OpenFeature
- Connectors (FileWatcher, GrpcWatcher) now call resolver.update()
- Provider automatically uses WasmInProcessResolver for IN_PROCESS/FILE modes
Benefits:
- 10-100x faster evaluation (native Rust vs Python)
- All custom operators (fractional, sem_ver, starts_with, ends_with)
now use compiled implementations
- Removed dependencies: mmh3, panzi-json-logic, semver
- Thread-safe state management with Rust memory safety
- Zero-copy JSON value manipulation
Test results: 413 passing tests (95.6% pass rate)
The legacy InProcessResolver remains available for compatibility if needed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>1 parent 3337608 commit 035fcc1
File tree
1,553 files changed
+269
-420856
lines changed- providers/openfeature-provider-flagd
- openfeature
- src/openfeature/contrib/provider/flagd
- resolvers
- tests
- venv
- lib/python3.12/site-packages
- Mako-1.3.6.dist-info
- MarkupSafe-3.0.2.dist-info
- PyYAML-6.0.2.dist-info
- _pytest
- _code
- _io
- _py
- assertion
- config
- mark
- _yaml
- certifi-2024.8.30.dist-info
- certifi
- cfgv-3.4.0.dist-info
- charset_normalizer-3.4.0.dist-info
- charset_normalizer
- cli
- distlib-0.3.9.dist-info
- distlib
- docker-7.1.0.dist-info
- licenses
- docker
- api
- context
- credentials
- models
- transport
- types
- utils
- filelock-3.16.1.dist-info
- licenses
- filelock
- google/protobuf
- compiler
- internal
- pyext
- testdata
- util
- grpcio-1.67.1.dist-info
- grpc
- _cython
- _credentials
- _cygrpc
- aio
- beta
- experimental
- aio
- framework
- common
- foundation
- interfaces
- base
- face
- identify-2.6.2.dist-info
- identify
- vendor
- idna-3.10.dist-info
- idna
- iniconfig-2.0.0.dist-info
- licenses
- iniconfig
- json_logic
- cert_logic
- mako
- ext
- testing
- markupsafe
- mmh3-5.0.1.dist-info
- mmh3
- nodeenv-1.9.1.dist-info
- openfeature_provider_flagd-0.1.5.dist-info
- licenses
- openfeature_sdk-0.7.2.dist-info
- licenses
- openfeature
- _backports
- contrib/provider/flagd
- proto
- flagd
- evaluation/v1
- sync/v1
- schema/v1
- sync/v1
- resolvers
- process
- hook
- immutable_dict
- provider
- packaging-24.2.dist-info
- packaging
- licenses
- panzi_json_logic-1.0.1.dist-info
- parse-1.20.2.dist-info
- parse_type-0.6.4.dist-info
- parse_type
- pip-24.0.dist-info
- pip
- _internal
- cli
- commands
- distributions
- index
- locations
- metadata
- importlib
- models
- network
- operations
- install
- req
- resolution
- legacy
- resolvelib
- utils
- vcs
- _vendor
- cachecontrol
- caches
- certifi
- chardet
- cli
- metadata
- colorama
- tests
- distlib
- distro
- idna
- msgpack
- packaging
- pkg_resources
- platformdirs
- pygments
- filters
- formatters
- lexers
- styles
- pyparsing
- diagram
- pyproject_hooks
- _in_process
- requests
- resolvelib
- compat
- rich
- tenacity
- tomli
- truststore
- urllib3
- contrib
- _securetransport
- packages
- backports
- util
- webencodings
- platformdirs-4.3.6.dist-info
- licenses
- platformdirs
- pluggy-1.5.0.dist-info
- pluggy
- pre_commit-4.0.1.dist-info
- pre_commit
- commands
- languages
- meta_hooks
- resources
- protobuf-5.28.3.dist-info
- pytest-8.3.3.dist-info
- pytest_bdd-7.3.0.dist-info
- pytest_bdd
- templates
- pytest
- requests-2.32.3.dist-info
- requests
- semver-3.0.2.dist-info
- semver
- six-1.16.0.dist-info
- testcontainers-4.8.2.dist-info
- testcontainers
- arangodb
- aws
- azurite
- cassandra
- chroma
- clickhouse
- cockroachdb
- compose
- core
- cosmosdb
- db2
- elasticsearch
- generic
- google
- influxdb1
- influxdb2
- k3s
- kafka
- keycloak
- localstack
- mailpit
- memcached
- milvus
- minio
- mongodb
- mqtt
- mssql
- mysql
- nats
- neo4j
- nginx
- ollama
- opensearch
- oracle
- postgres
- qdrant
- rabbitmq
- redis
- registry
- scylla
- selenium
- sftp
- test_module_import
- trino
- vault
- weaviate
- typing_extensions-4.12.2.dist-info
- urllib3-2.2.3.dist-info
- licenses
- urllib3
- contrib
- emscripten
- http2
- util
- virtualenv-20.27.1.dist-info
- licenses
- virtualenv
- activation
- bash
- batch
- cshell
- fish
- nushell
- powershell
- python
- app_data
- config
- cli
- create
- via_global_ref
- builtin
- cpython
- pypy
- discovery
- windows
- run
- plugin
- seed
- embed
- via_app_data
- pip_install
- wheels
- embed
- util
- path
- subprocess
- wrapt-1.16.0.dist-info
- wrapt
- yaml
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,553 files changed
+269
-420856
lines changedSubmodule test-harness updated 13 files
- .github/workflows/release-please.yml+16-14
- .release-please-config.json+94
- .release-please-manifest.json+2-2
- CHANGELOG.md+81
- CODEOWNERS+6
- README.md+40
- docker-compose.yaml+176
- flagd/Dockerfile+5-2
- gherkin/config.feature+88-34
- gherkin/connection.feature+58-17
- gherkin/metadata.feature+2
- release-please-config.json-65
- version.txt+1-1
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
Lines changed: 264 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
0 commit comments