mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 18:10:14 +01:00
add go and ruby
add ruby
This commit is contained in:
parent
0dc1394935
commit
6e467502f2
|
@ -13,7 +13,7 @@ repository = "https://github.com/cccb/servicepoint"
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
uniffi = { version = "0.25.0" , features = [ "build" ] }
|
uniffi = { version = "0.25.0", features = ["build"] }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
uniffi = { version = "0.25.0" }
|
uniffi = { version = "0.25.0" }
|
||||||
|
@ -25,10 +25,16 @@ path = "../servicepoint"
|
||||||
features = ["all_compressions"]
|
features = ["all_compressions"]
|
||||||
|
|
||||||
[dependencies.uniffi-bindgen-cs]
|
[dependencies.uniffi-bindgen-cs]
|
||||||
git="https://github.com/NordSecurity/uniffi-bindgen-cs"
|
git = "https://github.com/NordSecurity/uniffi-bindgen-cs"
|
||||||
# tag="v0.8.3+v0.25.0"
|
# tag="v0.8.3+v0.25.0"
|
||||||
rev="f68639fbc720b50ebe561ba75c66c84dc456bdce"
|
rev = "f68639fbc720b50ebe561ba75c66c84dc456bdce"
|
||||||
optional=true
|
optional = true
|
||||||
|
|
||||||
|
[dependencies.uniffi-bindgen-go]
|
||||||
|
git = "https://github.com/NordSecurity/uniffi-bindgen-go.git"
|
||||||
|
# tag = "0.2.1+v0.25.0"
|
||||||
|
rev = "a77dc0462dc18d53846c758155ab4e0a42e5b240"
|
||||||
|
optional = true
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
#workspace = true
|
#workspace = true
|
||||||
|
@ -42,8 +48,13 @@ required-features = ["uniffi/cli"]
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "uniffi-bindgen-cs"
|
name = "uniffi-bindgen-cs"
|
||||||
required-features= ["cs"]
|
required-features = ["cs"]
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "uniffi-bindgen-go"
|
||||||
|
required-features = ["go"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
cs = ["dep:uniffi-bindgen-cs"]
|
cs = ["dep:uniffi-bindgen-cs"]
|
||||||
|
go = ["dep:uniffi-bindgen-go"]
|
|
@ -12,9 +12,12 @@ CONFIG_TOML="$(realpath $SCRIPTPATH/../uniffi.toml)"
|
||||||
|
|
||||||
BINDGEN="cargo run --features=uniffi/cli --bin uniffi-bindgen -- "
|
BINDGEN="cargo run --features=uniffi/cli --bin uniffi-bindgen -- "
|
||||||
BINDGEN_CS="cargo run --features=cs --bin uniffi-bindgen-cs -- "
|
BINDGEN_CS="cargo run --features=cs --bin uniffi-bindgen-cs -- "
|
||||||
|
BINDGEN_GO="cargo run --features=go --bin uniffi-bindgen-go -- "
|
||||||
COMMON_ARGS="--library $SERVICEPOINT_SO"
|
COMMON_ARGS="--library $SERVICEPOINT_SO"
|
||||||
|
|
||||||
${BINDGEN} generate $COMMON_ARGS --language python --out-dir libraries/python
|
${BINDGEN} generate $COMMON_ARGS --language python --out-dir libraries/python
|
||||||
${BINDGEN} generate $COMMON_ARGS --language kotlin --out-dir libraries/kotlin
|
${BINDGEN} generate $COMMON_ARGS --language kotlin --out-dir libraries/kotlin
|
||||||
${BINDGEN} generate $COMMON_ARGS --language swift --out-dir libraries/swift
|
${BINDGEN} generate $COMMON_ARGS --language swift --out-dir libraries/swift
|
||||||
|
${BINDGEN} generate $COMMON_ARGS --language ruby --out-dir libraries/ruby
|
||||||
${BINDGEN_CS} $COMMON_ARGS --out-dir libraries/csharp/ServicePoint
|
${BINDGEN_CS} $COMMON_ARGS --out-dir libraries/csharp/ServicePoint
|
||||||
|
${BINDGEN_GO} $COMMON_ARGS --out-dir libraries/go/
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
uniffi_bindgen_go::main().unwrap();
|
||||||
|
}
|
Loading…
Reference in a new issue