-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (40 loc) · 1.39 KB
/
Cargo.toml
File metadata and controls
47 lines (40 loc) · 1.39 KB
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
[package]
edition = "2021"
name = "php"
version = "1.4.0"
authors = ["Platformatic Inc. <oss@platformatic.dev> (https://platformatic.dev)"]
license = "MIT"
repository = "https://github.com/platformatic/php-node"
[features]
default = []
napi-support = ["dep:napi", "dep:napi-derive", "dep:napi-build", "http-handler/napi-support", "http-rewriter/napi-support"]
[lib]
name = "php"
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"
[[bin]]
name = "php-main"
path = "src/main.rs"
[dependencies]
bytes = "1.10.1"
hostname = "0.4.1"
ext-php-rs = { version = "0.15.6", features = ["embed"] }
http-body-util = "0.1"
http-handler = { git = "https://github.com/platformatic/http-handler.git" }
# http-handler = { path = "../http-handler" }
http-rewriter = { git = "https://github.com/platformatic/http-rewriter.git" }
# http-rewriter = { path = "../http-rewriter" }
libc = "0.2.171"
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "3", default-features = false, features = ["napi4", "tokio_rt", "async"], optional = true }
napi-derive = { version = "3", optional = true }
once_cell = "1.21.0"
tokio = { version = "1.45", features = ["rt", "macros", "rt-multi-thread", "sync"] }
regex = "1.0"
[dev-dependencies]
tokio-test = "0.4"
[build-dependencies]
napi-build = { version = "2.2.1", optional = true }
# [profile.release]
# lto = true
# strip = "symbols"