Skip to content

Commit a96fd2a

Browse files
committed
Classextenders can extend multiple classes + add packaging tool to atomic-plugin Atomic Plugins, Apps, Store
Fixes #73
1 parent 78ea165 commit a96fd2a

File tree

20 files changed

+511
-126
lines changed

20 files changed

+511
-126
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
resolver = "2"
3-
members = ["server", "cli", "lib", "plugin-examples/random-folder-extender"]
3+
members = ["server", "cli", "lib", "plugin-examples/random-folder-extender", "atomic-plugin"]
44
# Tauri build is deprecated, see
55
# https://github.com/atomicdata-dev/atomic-server/issues/718
66
exclude = ["desktop"]

atomic-plugin/Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ serde = { version = "1.0", features = ["derive"] }
99
serde_json = "1.0"
1010
wit-bindgen = { version = "0.48.1", features = ["realloc", "macros"] }
1111
wit-bindgen-rt = "0.44.0"
12+
13+
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
14+
clap = { version = "4.5", features = ["derive"] }
15+
zip = "0.6"
16+
anyhow = "1.0"
17+
walkdir = "2"
18+
19+
[[bin]]
20+
name = "atomic-plugin"
21+
path = "src/bin.rs"

atomic-plugin/src/bin.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
fn main() -> anyhow::Result<()> {
2+
#[cfg(not(target_arch = "wasm32"))]
3+
{
4+
atomic_plugin::packaging_impl::main()
5+
}
6+
#[cfg(target_arch = "wasm32")]
7+
{
8+
panic!("This binary is not supported on WASM targets");
9+
}
10+
}

0 commit comments

Comments
 (0)