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 #19

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
18 changes: 17 additions & 1 deletion .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
- uses: coverallsapp/github-action@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ target/
meta_capi.wasm
wasi_snapshot_preview1.reactor.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 = "meta-capi-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 = "Meta Capi"
version = "0.8.1"
version = "1.0.0"
category = "data-collection"
subcategory = "conversion-api"
description = """
Expand All @@ -11,8 +11,9 @@ Each event you send to Meta CAPI must have a user property (at least one of the
"""
documentation = "https://www.edgee.cloud/docs/components/data-collection/meta-capi"
repository = "https://github.com/edgee-cloud/meta-capi-component"
wit-world-version = "0.5.0"
wit-version = "1.0.0"
icon-path = "meta.png"
language = "Rust"

[component.build]
command = "cargo build --target wasm32-wasip2 --release && cp ./target/wasm32-wasip2/release/meta_capi_component.wasm meta_capi.wasm"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::exports::edgee::components::data_collection::{
};
use meta_payload::{parse_value, MetaEvent, MetaPayload};

wit_bindgen::generate!({world: "data-collection", path: "wit", generate_all});
wit_bindgen::generate!({world: "data-collection", path: ".edgee/wit", generate_all});

export!(MetaComponent);

Expand Down Expand Up @@ -186,7 +186,7 @@ mod tests {
locale,
timezone: "CET".to_string(),
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: "abc".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.