Skip to content

Commit cd9d253

Browse files
authored
Refactor: Renamed folders and crates (#522)
* renamed folders and crates Signed-off-by: Jiaxiao Zhou <jiazho@microsoft.com> * renmae for markdown crate Signed-off-by: Jiaxiao Zhou <jiazho@microsoft.com> * fixed a CI error Signed-off-by: Jiaxiao Zhou <jiazho@microsoft.com> * changed gen-guest-teavm-java to teavm-java Signed-off-by: Jiaxiao Zhou <jiazho@microsoft.com> --------- Signed-off-by: Jiaxiao Zhou <jiazho@microsoft.com>
1 parent eeba5da commit cd9d253

File tree

33 files changed

+94
-94
lines changed

33 files changed

+94
-94
lines changed

Cargo.lock

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ wat = "1.0.59"
3535
wit-parser = "0.6.2"
3636
wit-component = "0.7.1"
3737

38-
wit-bindgen-core = { path = 'crates/bindgen-core', version = '0.3.0' }
39-
wit-bindgen-gen-guest-c = { path = 'crates/gen-guest-c', version = '0.3.0' }
40-
wit-bindgen-gen-guest-rust = { path = "crates/gen-guest-rust", version = "0.3.0" }
41-
wit-bindgen-gen-guest-teavm-java = { path = 'crates/gen-guest-teavm-java', version = '0.3.0' }
42-
wit-bindgen-gen-guest-go = { path = 'crates/gen-guest-go', version = '0.1.0' }
43-
wit-bindgen-gen-markdown = { path = 'crates/gen-markdown', version = '0.3.0' }
44-
wit-bindgen-gen-rust-lib = { path = 'crates/gen-rust-lib', version = '0.3.0' }
38+
wit-bindgen-core = { path = 'crates/core', version = '0.3.0' }
39+
wit-bindgen-c = { path = 'crates/c', version = '0.3.0' }
40+
wit-bindgen-rust = { path = "crates/rust", version = "0.3.0" }
41+
wit-bindgen-teavm-java = { path = 'crates/teavm-java', version = '0.3.0' }
42+
wit-bindgen-go = { path = 'crates/go', version = '0.1.0' }
43+
wit-bindgen-markdown = { path = 'crates/markdown', version = '0.3.0' }
44+
wit-bindgen-rust-lib = { path = 'crates/rust-lib', version = '0.3.0' }
4545
wit-bindgen = { path = 'crates/guest-rust', version = '0.3.0', default-features = false }
4646
wit-bindgen-rust-macro-shared = { path = 'crates/rust-macro-shared', version = '0.3.0' }
4747

@@ -52,22 +52,22 @@ name = "wit-bindgen"
5252
anyhow = { workspace = true }
5353
clap = { workspace = true }
5454
wit-bindgen-core = { workspace = true }
55-
wit-bindgen-gen-guest-rust = { workspace = true, features = ['clap'], optional = true }
56-
wit-bindgen-gen-guest-c = { workspace = true, features = ['clap'], optional = true }
57-
wit-bindgen-gen-markdown = { workspace = true, features = ['clap'], optional = true }
58-
wit-bindgen-gen-guest-teavm-java = { workspace = true, features = ['clap'], optional = true }
59-
wit-bindgen-gen-guest-go = { workspace = true, features = ['clap'], optional = true }
55+
wit-bindgen-rust = { workspace = true, features = ['clap'], optional = true }
56+
wit-bindgen-c = { workspace = true, features = ['clap'], optional = true }
57+
wit-bindgen-markdown = { workspace = true, features = ['clap'], optional = true }
58+
wit-bindgen-teavm-java = { workspace = true, features = ['clap'], optional = true }
59+
wit-bindgen-go = { workspace = true, features = ['clap'], optional = true }
6060
wat = { workspace = true }
6161
wit-component = { workspace = true }
6262
wasm-encoder = { workspace = true }
6363

6464
[features]
6565
default = ['c', 'rust', 'markdown', 'teavm-java', 'go']
66-
c = ['dep:wit-bindgen-gen-guest-c']
67-
rust = ['dep:wit-bindgen-gen-guest-rust']
68-
markdown = ['dep:wit-bindgen-gen-markdown']
69-
teavm-java = ['dep:wit-bindgen-gen-guest-teavm-java']
70-
go = ['dep:wit-bindgen-gen-guest-go']
66+
c = ['dep:wit-bindgen-c']
67+
rust = ['dep:wit-bindgen-rust']
68+
markdown = ['dep:wit-bindgen-markdown']
69+
teavm-java = ['dep:wit-bindgen-teavm-java']
70+
go = ['dep:wit-bindgen-go']
7171

7272
[dev-dependencies]
7373
heck = { workspace = true }

ci/publish.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ use std::time::Duration;
2727
// Crates we care about publishing sorted topologically.
2828
const CRATES_TO_PUBLISH: &[&str] = &[
2929
"wit-bindgen-core",
30-
"wit-bindgen-gen-rust-lib",
31-
"wit-bindgen-gen-guest-c",
32-
"wit-bindgen-gen-guest-rust",
33-
"wit-bindgen-gen-guest-teavm-java",
34-
"wit-bindgen-gen-markdown",
35-
"wit-bindgen-guest-rust-macro",
30+
"wit-bindgen-rust-lib",
31+
"wit-bindgen-c",
32+
"wit-bindgen-rust",
33+
"wit-bindgen-teavm-java",
34+
"wit-bindgen-markdown",
35+
"wit-bindgen-rust-macro",
3636
"wit-bindgen",
3737
"wit-bindgen-cli",
3838
];

crates/gen-guest-c/Cargo.toml renamed to crates/c/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "wit-bindgen-gen-guest-c"
2+
name = "wit-bindgen-c"
33
authors = ["Alex Crichton <alex@alexcrichton.com>"]
44
version = "0.3.0"
55
edition.workspace = true
File renamed without changes.

crates/gen-guest-c/tests/codegen.rs renamed to crates/c/tests/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ macro_rules! codegen_test {
1111
"guest-c",
1212
$test.as_ref(),
1313
|resolve, world, files| {
14-
wit_bindgen_gen_guest_c::Opts::default()
14+
wit_bindgen_c::Opts::default()
1515
.build()
1616
.generate(resolve, world, files)
1717
},
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)