forked from bytecodealliance/wit-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
129 lines (118 loc) · 4.91 KB
/
Cargo.toml
File metadata and controls
129 lines (118 loc) · 4.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[package]
name = "wit-bindgen-cli"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
version = { workspace = true }
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
rust-version = { workspace = true }
homepage = 'https://github.com/bytecodealliance/wit-bindgen'
description = """
CLI tool to generate bindings for WIT documents and the component model.
"""
[package.metadata.binstall]
pkg-url = "{repo}/releases/download/v{version}/wit-bindgen-{version}-{target-arch}-{target-family}{archive-suffix}"
bin-dir = "wit-bindgen-{version}-{target-arch}-{target-family}/{bin}{binary-ext}"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.'cfg(target_os = "macos")']
pkg-url = "{repo}/releases/download/v{version}/wit-bindgen-{version}-{target-arch}-macos{archive-suffix}"
bin-dir = "wit-bindgen-{version}-{target-arch}-macos/{bin}{binary-ext}"
[package.metadata.binstall.overrides.'cfg(target_os = "windows")']
pkg-fmt = "zip"
[lints]
workspace = true
[workspace]
resolver = "2"
members = ["crates/importlib"]
[workspace.package]
edition = "2024"
version = "0.54.0"
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
repository = "https://github.com/bytecodealliance/wit-bindgen"
rust-version = "1.87.0"
[workspace.dependencies]
anyhow = "1.0.72"
bitflags = "2.3.3"
heck = { version = "0.5" }
pulldown-cmark = { version = "0.9", default-features = false }
serde = { version = "1.0.218", features = ["derive"] }
clap = { version = "4.3.19", features = ["derive"] }
indexmap = "2.0.0"
prettyplease = "0.2.20"
syn = { version = "2.0.89", features = ["printing"] }
futures = "0.3.31"
macro-string = "0.2.0"
wat = { git = "https://github.com/cpetig/wasm-tools", branch = "symmetric" }
wasmparser = { git = "https://github.com/cpetig/wasm-tools", branch = "symmetric" }
wasm-encoder = { git = "https://github.com/cpetig/wasm-tools", branch = "symmetric" }
wasm-metadata = { git = "https://github.com/cpetig/wasm-tools", branch = "symmetric", default-features = false }
wit-parser = { git = "https://github.com/cpetig/wasm-tools", branch = "symmetric" }
wit-component = { git = "https://github.com/cpetig/wasm-tools", branch = "symmetric" }
wasm-compose = { git = "https://github.com/cpetig/wasm-tools", branch = "symmetric" }
wit-bindgen-core = { path = 'crates/core', version = '0.54.0' }
wit-bindgen-c = { path = 'crates/c', version = '0.54.0' }
wit-bindgen-cpp = { path = 'crates/cpp', version = '0.54.0' }
wit-bindgen-rust = { path = "crates/rust", version = "0.54.0" }
wit-bindgen-csharp = { path = 'crates/csharp', version = '0.54.0' }
wit-bindgen-markdown = { path = 'crates/markdown', version = '0.54.0' }
wit-bindgen-moonbit = { path = 'crates/moonbit', version = '0.54.0' }
wit-bindgen-go = { path = 'crates/go', version = '0.54.0' }
wit-bindgen = { path = 'crates/guest-rust', version = '0.54.0', default-features = false }
wit-bindgen-test = { path = 'crates/test', version = '0.54.0' }
wit-bindgen-bridge = { path = 'crates/bridge', version = '0.54.0' }
wit-bindgen-importlib = { path = 'crates/importlib', version = '0.54.0' }
[workspace.lints.clippy]
# The default set of lints in Clippy is viewed as "too noisy" right now so
# they're all turned off by default. Selective lints are then enabled below as
# necessary.
all = { level = 'allow', priority = -1 }
clone_on_copy = 'warn'
map_clone = 'warn'
unnecessary_to_owned = 'warn'
manual_strip = 'warn'
uninlined_format_args = 'warn'
unnecessary_mut_passed = 'warn'
unnecessary_fallible_conversions = 'warn'
unnecessary_cast = 'warn'
allow_attributes_without_reason = 'warn'
[[bin]]
name = "wit-bindgen"
[dependencies]
anyhow = { workspace = true }
clap = { workspace = true, features = ['wrap_help'] }
wit-bindgen-core = { workspace = true }
wit-bindgen-rust = { workspace = true, features = ['clap'], optional = true }
wit-bindgen-c = { workspace = true, features = ['clap'], optional = true }
wit-bindgen-cpp = { workspace = true, features = ['clap'], optional = true }
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-test = { workspace = true }
wit-bindgen-importlib = { workspace = true, features = ['clap'] }
wit-component = { workspace = true }
wasm-encoder = { workspace = true }
wit-bindgen-bridge = { workspace = true, features = ['clap'], optional = true }
env_logger = "0.11.7"
[features]
default = [
'c',
'rust',
'markdown',
'go',
'csharp',
'cpp',
'bridge',
'moonbit',
'async',
]
bridge = ['dep:wit-bindgen-bridge']
c = ['dep:wit-bindgen-c']
cpp = ['dep:wit-bindgen-cpp']
rust = ['dep:wit-bindgen-rust']
markdown = ['dep:wit-bindgen-markdown']
go = ['dep:wit-bindgen-go']
csharp = ['dep:wit-bindgen-csharp']
csharp-mono = ['csharp']
moonbit = ['dep:wit-bindgen-moonbit']
async = []