-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UniFFI for multi language bindings #18
Conversation
132dce7
to
a1ce989
Compare
${BINDGEN} generate $COMMON_ARGS --language swift --out-dir "$LIBRARIES_PATH/swift" | ||
${BINDGEN} generate $COMMON_ARGS --language ruby --out-dir "$LIBRARIES_PATH/ruby" | ||
${BINDGEN_CS} $COMMON_ARGS --out-dir "$LIBRARIES_PATH/csharp/ServicePoint" | ||
${BINDGEN_GO} $COMMON_ARGS --out-dir "$LIBRARIES_PATH/go/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one crate per supported language, dependency in Cargo.toml, build.rs that generates library
that way the directories are less nested and the bindings get built by cargo build --all
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove checked-in code, at least for languages that are not tested yet and do not have a project file to reference
/// by explicitly calling `sp_connection_free`. | ||
/// </summary> | ||
[DllImport(__DllName, EntryPoint = "sp_connection_fake", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] | ||
public static extern Connection* sp_connection_fake(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove old lib if all functionality is provided in the new one
crates/servicepoint/src/char_grid.rs
Outdated
/// A grid containing UTF-8 characters. | ||
pub type CharGrid = PrimitiveGrid<char>; | ||
|
||
impl CharGrid { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move base crate changes into PR that can be merged before this one
6e58e74
to
15c0eb5
Compare
Constants are missing from the bindings |
15c0eb5
to
0aa6514
Compare
cs not working
0aa6514
to
83e31e7
Compare
No description provided.