diff --git a/.prototools b/.prototools new file mode 100644 index 0000000..97de1cf --- /dev/null +++ b/.prototools @@ -0,0 +1,2 @@ +[plugins] +bun-test = "source:target/wasm32-wasi/debug/bun_plugin.wasm" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..8cb9b8d --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "bun_plugin" +version = "0.1.0" +edition = "2021" +license = "MIT" +publish = false + +[lib] +crate-type = ['cdylib'] + +[dependencies] +extism-pdk = "0.3.3" +proto_pdk = "0.2.0" +serde = "1.0.167" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e30b503 --- /dev/null +++ b/LICENSE @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) 2023 moonrepo, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, +sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT +NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES +OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..d334711 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Bun plugin + +Bun WASM plugins for [proto](https://github.com/moonrepo/proto). + +## Contributing + +Build the plugin: + +```shell +cargo build --target wasm32-wasi +``` + +Test the plugin by running `proto` commands. Requires proto >= v0.12. + +```shell +proto install bun-test +proto list-remote bun-test +``` diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..1d6628d --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +profile = "default" +channel = "1.70.0" diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1 @@ +