Chinedu Francis Nwafili
Chinedu Francis Nwafili
https://github.com/chinedufn/landon/blob/master/blender-armature/src/export.rs
Swift recently accepted a [proposal for a `consume` operator][consume]. The `consume` operator will let us declare that a function takes unique ownership of a type https://github.com/apple/swift-evolution/blob/main/proposals/0366-move-function.md?plain=1#L175-L184 . Any attempts to...
## The Problem In [#149] we implemented support for returning `-> Result` where `E` is an opaque Rust type. ```rust // Rust #[swift_bridge::bridge] mod ffi { extern "Rust" { type...
Right now users can use the `args_into` attribute on an `extern "Rust"` function in order to convert the type passed in from Swift into a different Rust type. https://github.com/chinedufn/swift-bridge/blob/27246447b4ac741b8bf086d3dfca15b47558e44f/book/src/bridge-module/functions/README.md?plain=1#L107-L144 We...
> NOTE: I haven't thought through this very deeply. Just jotting down some quick notes/ideas that we can flesh out later... --- Right now a transparent struct can only be...
For example, the following should be possible: ```rust #[swift_bridge::bridge] mod ffi { extern "Rust" { fn reflect_char(character: char) -> char; } } ``` ```swift // Swift let char: Character =...
## The Problem Right now we define a Swift `enum RustResult`. https://github.com/chinedufn/swift-bridge/blob/420ed791c0cef08f7cfff7f4024ee39cd13d31c2/crates/swift-bridge-build/src/generate_core/result_support.rs#L2-L5 We use `RustResult` instead of Swift's standard `Result` type since Swift's `Result` requires the `E` to conform to...
```rust let val = 5; html! {({val})}.to_string(); // Currently returns: "({val})" // Should return: "(5)" ```
Hey! I'd like to add `CheckRun` and `CheckSuite` variants to the `EventPayload`. https://github.com/XAMPPRocky/octocrab/blob/9e82499d753e0805193fa1c78d3013b8e4a38bc8/src/models/events/payload.rs#L36 Just confirming that those would be accepted contributions before I invest time in this? Thanks! https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#webhook-payload-object-1 https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#check_suite
thiserror is very convenient, but for this library it isn't worth pulling in `syn` or any other dependencies. After the API stabilizes we should remove `thiserror` in favor of some...