@@ -9,26 +9,31 @@ keywords = ["http", "rewriting", "library"]
99categories = [" network-programming" , " web-development" ]
1010edition = " 2024"
1111
12+ [features ]
13+ default = []
14+ napi-support = [" dep:napi" , " dep:napi-derive" , " dep:napi-build" , " http-handler/napi-support" , " http-rewriter/napi-support" ]
15+
1216[lib ]
1317name = " python_node"
1418crate-type = [" cdylib" ]
1519
1620[dependencies ]
1721async-trait = " 0.1.88"
1822bytes = " 1.10.1"
19- http-handler = { git = " ssh://git@github.com/platformatic/http-handler" , features = [ " napi-support " ] }
20- # http-handler = { path = "../http-handler", features = ["napi-support"] }
21- # http-rewriter = { git = "ssh://git@github.com/platformatic/http-rewriter", features = ["napi-support"] }
22- http-rewriter = { path = " ../http-rewriter" , features = [ " napi-support " ] }
23+ http-handler = { git = " ssh://git@github.com/platformatic/http-handler" }
24+ # http-handler = { path = "../http-handler" }
25+ # http-rewriter = { git = "ssh://git@github.com/platformatic/http-rewriter" }
26+ http-rewriter = { path = " ../http-rewriter" }
2327# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
24- napi = { version = " 3.0.0-beta.8" , default-features = false , features = [" napi4" ] }
25- napi-derive = " 3.0.0-beta.8"
28+ napi = { version = " 3.0.0-beta.8" , default-features = false , features = [" napi4" ], optional = true }
29+ napi-derive = { version = " 3.0.0-beta.8" , optional = true }
2630pyo3 = { version = " 0.25.1" , features = [" auto-initialize" , " experimental-async" ] }
2731pyo3-async-runtimes = { version = " 0.25.0" , features = [" tokio-runtime" ] }
32+ thiserror = " 2.0.12"
2833tokio = { version = " 1.45.1" , features = [" full" ] }
2934
3035[build-dependencies ]
31- napi-build = " 2.2.1"
36+ napi-build = { version = " 2.2.1" , optional = true }
3237
3338[profile .release ]
3439lto = true
0 commit comments