mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 10:00: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"]
|
||||
|
||||
[build-dependencies]
|
||||
uniffi = { version = "0.25.0" , features = [ "build" ] }
|
||||
uniffi = { version = "0.25.0", features = ["build"] }
|
||||
|
||||
[dependencies]
|
||||
uniffi = { version = "0.25.0" }
|
||||
|
@ -25,10 +25,16 @@ path = "../servicepoint"
|
|||
features = ["all_compressions"]
|
||||
|
||||
[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"
|
||||
rev="f68639fbc720b50ebe561ba75c66c84dc456bdce"
|
||||
optional=true
|
||||
rev = "f68639fbc720b50ebe561ba75c66c84dc456bdce"
|
||||
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]
|
||||
#workspace = true
|
||||
|
@ -42,8 +48,13 @@ required-features = ["uniffi/cli"]
|
|||
|
||||
[[bin]]
|
||||
name = "uniffi-bindgen-cs"
|
||||
required-features= ["cs"]
|
||||
required-features = ["cs"]
|
||||
|
||||
[[bin]]
|
||||
name = "uniffi-bindgen-go"
|
||||
required-features = ["go"]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
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_CS="cargo run --features=cs --bin uniffi-bindgen-cs -- "
|
||||
BINDGEN_GO="cargo run --features=go --bin uniffi-bindgen-go -- "
|
||||
COMMON_ARGS="--library $SERVICEPOINT_SO"
|
||||
|
||||
${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 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_GO} $COMMON_ARGS --out-dir libraries/go/
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
uniffi_bindgen_go::main().unwrap();
|
||||
}
|
Loading…
Reference in a new issue