Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ wit-bindgen-csharp = { path = 'crates/csharp', version = '0.53.1' }
wit-bindgen-markdown = { path = 'crates/markdown', version = '0.53.1' }
wit-bindgen-moonbit = { path = 'crates/moonbit', version = '0.53.1' }
wit-bindgen-go = { path = 'crates/go', version = '0.53.1' }
wit-bindgen-d = { path = 'crates/d', version = '0.53.1' }
wit-bindgen = { path = 'crates/guest-rust', version = '0.53.1', default-features = false }
wit-bindgen-test = { path = 'crates/test', version = '0.53.1' }

Expand Down Expand Up @@ -94,6 +95,7 @@ wit-bindgen-markdown = { workspace = true, features = ['clap'], optional = true
wit-bindgen-moonbit = { workspace = true, features = ['clap'], optional = true }
wit-bindgen-csharp = { workspace = true, features = ['clap'], optional = true }
wit-bindgen-go = { workspace = true, features = ['clap'], optional = true }
wit-bindgen-d = { workspace = true, features = ['clap'], optional = true }
wit-bindgen-test = { workspace = true }
wit-component = { workspace = true }
wasm-encoder = { workspace = true }
Expand All @@ -108,7 +110,8 @@ default = [
'csharp',
'cpp',
'moonbit',
'async',
'd',
'async'
]
c = ['dep:wit-bindgen-c']
cpp = ['dep:wit-bindgen-cpp']
Expand All @@ -118,4 +121,5 @@ go = ['dep:wit-bindgen-go']
csharp = ['dep:wit-bindgen-csharp']
csharp-mono = ['csharp']
moonbit = ['dep:wit-bindgen-moonbit']
d = ['dep:wit-bindgen-d']
async = []
33 changes: 33 additions & 0 deletions crates/d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "wit-bindgen-d"
authors = ["Demetrius Kanios <demetrius@kanios.net>"]
version = { workspace = true }
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
rust-version = { workspace = true }
homepage = 'https://github.com/bytecodealliance/wit-bindgen'
description = """
D bindings generator for WIT and the component model, typically used through the
`wit-bindgen-cli` crate.
"""

[lints]
workspace = true

[lib]
doctest = false
test = false

[dependencies]
wit-bindgen-core = { workspace = true }
wit-component = { workspace = true }
wasm-encoder = { workspace = true }
wasm-metadata = { workspace = true }
anyhow = { workspace = true }
heck = { workspace = true }
clap = { workspace = true, optional = true }
indexmap = { workspace = true }

[features]
clap = ['dep:clap', 'wit-bindgen-core/clap']
1 change: 1 addition & 0 deletions crates/d/LICENSE-APACHE
1 change: 1 addition & 0 deletions crates/d/LICENSE-Apache-2.0_WITH_LLVM-exception
1 change: 1 addition & 0 deletions crates/d/LICENSE-MIT
17 changes: 17 additions & 0 deletions crates/d/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# `wit-bindgen` D Bindings Generator

This tool generates [D](https://dlang.org) bindings for a chosen WIT world.

## Usage

To generate bindings with this crate, issue the `d` subcommand to `wit-bindgen`:

```bash
$ wit-bindgen d [OPTIONS] <WIT>
```

See the output of `wit-bindgen help d` for available options.

-------

TODO: Flesh out fuller docs (ownership, more usage, examples, etc.)
Loading