bytecodealliance / bytecodealliance/wit-bindgen

Ability to get the fully resolved name of functions and types

Open
#986 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.5k
Forks
286
Avg merge
6h 32m
Merged PRs (30d)
19

Description

In my experience, it is currently really difficult to get the complete, fully resolved name of a function or type. This is especially annoying when one needs not just the name itself but also the namespace. So it would be great to have the ability to get the fully resolved name of functions and types from the perspective of a world. By “fully resolved” I mean that it includes (where applicable) the package, interface and the with `as` renamed function/type name.

Something kind of like:
```rust
struct FullName {
package: Option,
interface: Option,
name: Option,
as_: Option,
}
```
I haven’t completely figured out how names (and namespaces) work in Wit yet, so this may look different in practice.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.