add go and ruby

add ruby
This commit is contained in:
Vinzenz Schroeter 2024-11-03 11:42:37 +01:00
parent 0dc1394935
commit 6e467502f2
3 changed files with 22 additions and 5 deletions

View file

@ -30,6 +30,12 @@ git="https://github.com/NordSecurity/uniffi-bindgen-cs"
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
@ -44,6 +50,11 @@ required-features = ["uniffi/cli"]
name = "uniffi-bindgen-cs"
required-features = ["cs"]
[[bin]]
name = "uniffi-bindgen-go"
required-features = ["go"]
[features]
default = []
cs = ["dep:uniffi-bindgen-cs"]
go = ["dep:uniffi-bindgen-go"]

View file

@ -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/

View file

@ -0,0 +1,3 @@
fn main() {
uniffi_bindgen_go::main().unwrap();
}