Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0.0 #31

Merged
merged 5 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
with:
target: wasm32-wasip2 # WebAssembly target
components: rustfmt
- uses: edgee-cloud/[email protected]
- run: edgee component build
- run: cargo check
fmt:
name: cargo fmt
Expand All @@ -24,6 +26,9 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
target: wasm32-wasip2
- uses: edgee-cloud/[email protected]
- run: edgee component build
- uses: actions-rust-lang/rustfmt@v1
clippy:
name: clippy
Expand All @@ -35,6 +40,9 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
target: wasm32-wasip2
- uses: edgee-cloud/[email protected]
- run: edgee component build
- uses: wearerequired/lint-action@master
with:
clippy: true
Expand All @@ -44,6 +52,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-wasip2
- uses: edgee-cloud/[email protected]
- run: edgee component build
- run: make test

coverage:
Expand All @@ -52,6 +64,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-wasip2
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: edgee-cloud/[email protected]
- run: edgee component build
- run: make test.coverage.lcov
- uses: coverallsapp/github-action@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ target/
# Specific
piano_analytics.wasm
lcov.info
.edgee/
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.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "piano-analytics-component"
version = "0.8.1"
version = "1.0.0"
edition = "2021"

[lib]
Expand Down
5 changes: 3 additions & 2 deletions edgee-component.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ manifest-version = 1

[component]
name = "Piano Analytics"
version = "0.8.1"
version = "1.0.0"
category = "data-collection"
subcategory = "analytics"
description = """
Expand All @@ -14,8 +14,9 @@ enabling you to harness its powerful analytics tools without the need for embedd
> - Boost site performance. Adhere to the highest standards of user privacy."""
documentation = "https://www.edgee.cloud/docs/components/data-collection/piano-analytics"
repository = "https://github.com/edgee-cloud/piano-analytics-component"
wit-world-version = "0.5.0"
wit-version = "1.0.0"
icon-path = "piano_analytics.png"
language = "Rust"

[component.build]
command = "cargo build --target wasm32-wasip2 --release && cp ./target/wasm32-wasip2/release/piano_analytics_component.wasm piano_analytics.wasm"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use exports::edgee::components::data_collection::Guest;
use piano_payload::PianoEvent;
use piano_payload::PianoPayload;
use std::vec;
wit_bindgen::generate!({world: "data-collection", path: "wit", generate_all});
wit_bindgen::generate!({world: "data-collection", path: ".edgee/wit", generate_all});

export!(PianoComponent);

Expand Down Expand Up @@ -151,7 +151,7 @@ mod tests {
locale,
timezone,
user_agent: "Chrome".to_string(),
user_agent_architecture: "fuck knows".to_string(),
user_agent_architecture: "x86".to_string(),
user_agent_bitness: "64".to_string(),
user_agent_full_version_list: "Brand1;1.0.0|Brand2;2.0.0".to_string(),
user_agent_version_list: "abc".to_string(),
Expand Down
4 changes: 0 additions & 4 deletions wit/deps.lock

This file was deleted.

1 change: 0 additions & 1 deletion wit/deps.toml

This file was deleted.

13 changes: 0 additions & 13 deletions wit/deps/edgee/consent-mapping.wit

This file was deleted.

114 changes: 0 additions & 114 deletions wit/deps/edgee/data-collection.wit

This file was deleted.

5 changes: 0 additions & 5 deletions wit/world.wit

This file was deleted.