-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add asdf plugin support - Implement plugin interface, version d…
…etection, plugin management and tool installation
- Loading branch information
1 parent
9b702e6
commit 22f8805
Showing
8 changed files
with
1,165 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[package] | ||
name = "proto-asdf-plugin" | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "MIT" | ||
publish = false | ||
|
||
[lib] | ||
crate-type = ['cdylib'] | ||
|
||
[dependencies] | ||
proto_pdk = { workspace = true } | ||
extism-pdk = { workspace = true } | ||
serde = { workspace = true } | ||
serde_json = "1.0" | ||
rustc-hash = "2.1" | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
debug = false | ||
lto = true | ||
opt-level = "s" | ||
panic = "abort" | ||
|
||
[dev-dependencies] | ||
proto_pdk_test_utils = { workspace = true } | ||
tokio = { workspace = true } | ||
|
||
[features] | ||
default = ["wasm"] | ||
wasm = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Default, Deserialize, Serialize)] | ||
pub struct AsdfPluginConfig { | ||
#[serde(default)] | ||
pub asdf_plugin: Option<String>, | ||
#[serde(default)] | ||
pub asdf_repository: Option<String>, | ||
#[serde(default)] | ||
pub asdf_version: Option<String>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
mod config; | ||
mod proto; | ||
|
||
pub use config::*; | ||
pub use proto::*; | ||
|
||
|
Oops, something went wrong.