bytecodealliance / bytecodealliance/wit-bindgen

Allow path expansion/modification for the `deps` directory in `generate!`

Open
#1,675 1 comment 0 reactions 0 assignees View on GitHub
gen-rust
Dominant language
Rust
Stars
1.5k
Forks
286
Avg merge
6h 32m
Merged PRs (30d)
19

Description

#### Feature

allow `wit_bindgen::generate!` (and `wasmtime::bindgen!`) to link a dependency tree that is not a sibling path to the root WIT package to be generated:

```rs
bindgen!({
world: "foo",
path: "other/path/to/wit",
deps: "path/to/foo/dir/deps", // behaves as "other/path/to/wit/dir"
// ...
});
```

#### Benefit

This would allow aggregation of dependency trees for multiple packages that share different directories

#### Implementation

Likely u directory association inside of `bindgen!` `wasmtime::Config`

#### Alternatives

Symlinking, this is not supported on windows 😢

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.