Skip to content

Update for uniffi 0.30.0 - #338

Closed
ayroblu wants to merge 9 commits into
jhugman:mainfrom
ayroblu:uniffi-next-final
Closed

ayroblu wants to merge 9 commits into
jhugman:mainfrom
ayroblu:uniffi-next-final

Conversation

@ayroblu

@ayroblu ayroblu commented Jan 24, 2026

Copy link
Copy Markdown

Just putting this up as my work in progress. I applied every breaking change individually and made the appropriate change in ubrn based on what changed upstream.

I can't figure out the last test, wasm-arc-futures. For some reason uniffi gives back a 0n (invalid) handle when the call is made, and I'm not sure why. I don't think I'll be putting more time into this.

side note: looks like the latest rn tests are failing, but due to update upstream. They were passing just a week ago.

let literal = e.variant_discr(*index).expect("invalid index");
let ts_literal = Type::Int32.as_codetype().literal(&literal, ci);
// let ts_literal = Type::Int32.as_codetype().literal(&literal, ci);
let ts_literal = "0".into(); // todo?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking back this, I realise I missed this. Not sure what this should be.

impl_code_type_for_primitive!(UInt8CodeType, "UInt8", "/*u8*/number", "0");
impl_code_type_for_primitive!(UInt16CodeType, "UInt16", "/*u16*/number", "0");
impl_code_type_for_primitive!(UInt32CodeType, "UInt32", "/*u32*/number", "0");
impl_code_type_for_primitive!(UInt64CodeType, "UInt64", "/*u64*/bigint", "0n");

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realise these are probably never used, but they should probably be BigInt("0") since we're not allowed to use the 0n shorthand (tsc wise)

@ayroblu ayroblu mentioned this pull request Jan 24, 2026
@jhugman jhugman mentioned this pull request Feb 24, 2026
9 tasks done
@jhugman jhugman closed this in 87d48f2 Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant