Skip to content

Conversation

badboy
Copy link
Contributor

@badboy badboy commented Jan 3, 2022

Over at mozilla/uniffi-rs we use Weedle to parse UDL, which really is just WebIDL with a couple more annotations.
Weedle supports most things we need already.

But this PR here is one thing we might want to have: non-string keys for records.
It seemed easy enough to allow any type by just nesting the parsers (of course for our usecase we will need to restrict that again because keys still need to be hashable ultimately).

Would you consider this change for Weedle?

@alexcrichton
Copy link
Contributor

#39 (comment) is something I wrote... wow over a year ago. This isn't really a maintained library any more insofar that web-sys is "done". If you'd like though if you're actively using this we can probably arrange for a repo transfer.

@alexcrichton alexcrichton merged commit 9bcb6b6 into wasm-bindgen:master May 20, 2022
RSSchermer added a commit to RSSchermer/wasm-bindgen that referenced this pull request May 20, 2022
alexcrichton pushed a commit to wasm-bindgen/wasm-bindgen that referenced this pull request May 23, 2022
* Update weedle dependency to git dependency

As discussed in wasm-bindgen/weedle#52 (comment)

* Change `StringType` to `RecordKeyType`

In response to wasm-bindgen/weedle#50

* Accommodate constants in namespaces

See wasm-bindgen/weedle#52

* Reformat with rust-fmt
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.

2 participants