Skip to content
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

Allow any type as the key type in records #50

Merged
merged 1 commit into from
May 20, 2022

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 rustwasm: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 rustwasm/wasm-bindgen that referenced this pull request May 23, 2022
* Update weedle dependency to git dependency

As discussed in rustwasm/weedle#52 (comment)

* Change `StringType` to `RecordKeyType`

In response to rustwasm/weedle#50

* Accommodate constants in namespaces

See rustwasm/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.

None yet

2 participants