Skip to content

Commit

Permalink
feat: Add asdf plugin support - Implement plugin interface, version d…
Browse files Browse the repository at this point in the history
…etection, plugin management and tool installation
  • Loading branch information
onyedikachi-david committed Jan 21, 2025
1 parent 9b702e6 commit 22f8805
Show file tree
Hide file tree
Showing 8 changed files with 1,165 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

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

31 changes: 31 additions & 0 deletions tools/asdf/Cargo.toml
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 = []
11 changes: 11 additions & 0 deletions tools/asdf/src/config.rs
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>,
}
7 changes: 7 additions & 0 deletions tools/asdf/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mod config;
mod proto;

pub use config::*;
pub use proto::*;


Loading

0 comments on commit 22f8805

Please sign in to comment.