Skip to content

Commit

Permalink
chore: rename datakit_filter to datakit
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Apr 15, 2024
1 parent 99f6e84 commit 02bfa44
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 39 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,15 @@ jobs:
run: cargo build --release

- run: |
if ! test -f target/wasm32-wasi/release/datakit_filter.wasm; then
if ! test -f target/wasm32-wasi/release/datakit.wasm; then
echo "missing output binary"
exit 1
fi
mv -v \
./target/wasm32-wasi/release/datakit_filter.wasm \
./target/wasm32-wasi/release/datakit.wasm \
./datakit.wasm
mv -v \
./datakit-filter/datakit_filter.meta.json \
./datakit.meta.json
readonly BODY=./body.md
touch "$BODY"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

28 changes: 23 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
[workspace]
members = ["datakit-filter"]
resolver = "2"
[package]
name = "datakit"
version = "0.1.0"
authors = ["Hisham Muhammad <[email protected]>"]
license = "Apache-2.0"
edition = "2021"

#[workspace.dependencies]
#datakit = { path = "datakit" }
[lib]
path = "src/filter.rs"
crate-type = ["cdylib"]

[dependencies]
proxy-wasm = "0.2"
log = "0.4"
serde-json-wasm = "0.5.0"
serde_json = "*"
serde = { version = "*", features = ["derive"] }
lazy_static = "*"
"url" = "2.5.0"
handlebars = "5.1.0"
jaq-interpret = "1.2.1"
jaq-parse = "1.0.2"
jaq-core = "1.2.1"
jaq-std = "1.2.1"
25 changes: 0 additions & 25 deletions datakit-filter/Cargo.toml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/config/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
strip_path: false
filter_chains:
- filters:
- name: datakit_filter
- name: datakit
config:
nodes:
- type: call
Expand Down
2 changes: 1 addition & 1 deletion test/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ message "Building the filter using cargo..."
mkdir -p wasm

cp -a ../target/wasm32-wasi/release/*.wasm wasm/
cp ../*/*.meta.json wasm/
cp ../*.meta.json wasm/

script_dir=$(dirname $(realpath $0))

Expand Down

0 comments on commit 02bfa44

Please sign in to comment.