Skip to content

Commit 69485eb

Browse files
author
Alex Casalboni
authored
Wit update (#27)
* rename WIT dependency from protocols to edgee (no code changes) * use WIT 0.5.0, rename edgee::protocols to edgee::components * CI: clean up release workflow
1 parent 352e2cd commit 69485eb

File tree

8 files changed

+12
-16
lines changed

8 files changed

+12
-16
lines changed

.github/workflows/wasm-build-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ jobs:
1515
- uses: dtolnay/rust-toolchain@stable
1616
with:
1717
target: wasm32-wasip2
18-
- name: Wasm target
19-
run: rustup target add wasm32-wasip2
20-
- name: Install wasm-tools
21-
run: cargo install --locked wasm-tools
2218
- name: Build WASM
2319
run: make build
2420
- name: Upload WASM to release

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use base64::{
55
engine::{general_purpose::PAD, GeneralPurpose},
66
Engine,
77
};
8-
use exports::edgee::protocols::data_collection::{
8+
use exports::edgee::components::data_collection::{
99
Data, Dict, EdgeeRequest, Event, Guest, HttpMethod,
1010
};
1111
use segment_payload::SegmentPayload;
@@ -164,10 +164,10 @@ fn build_edgee_request(segment_payload: SegmentPayload, settings: &Dict) -> Edge
164164
#[cfg(test)]
165165
mod tests {
166166
use super::*;
167-
use crate::exports::edgee::protocols::data_collection::{
167+
use crate::exports::edgee::components::data_collection::{
168168
Campaign, Client, Context, EventType, PageData, Session, TrackData, UserData,
169169
};
170-
use exports::edgee::protocols::data_collection::Consent;
170+
use exports::edgee::components::data_collection::Consent;
171171
use pretty_assertions::assert_eq;
172172
use uuid::Uuid;
173173

src/segment_payload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use chrono::{DateTime, TimeZone, Utc};
33
use serde::Serialize;
44
use std::collections::HashMap;
55

6-
use crate::exports::edgee::protocols::data_collection::{Dict, Event};
6+
use crate::exports::edgee::components::data_collection::{Dict, Event};
77

88
#[derive(Debug, Default, Serialize)]
99
pub(crate) struct SegmentPayload {

wit/deps.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[protocols]
2-
url = "https://github.com/edgee-cloud/edgee-wit/archive/refs/tags/v0.4.0.tar.gz"
3-
sha256 = "8b5c8ea97c81d1d6cf4f227e75afb8c4dc5c0a411c3a0401fb7e4f7b745e21ba"
4-
sha512 = "16771cd12095409e7c4857a8f5c0b4ad680959e3c35dcd7999e11131bcce05d3b1a1b829daefceabbd853ae5b7f6453e3e359ddfbdebd6e2a94db6c55780368f"
1+
[edgee]
2+
url = "https://github.com/edgee-cloud/edgee-wit/archive/refs/tags/v0.5.0.tar.gz"
3+
sha256 = "f6e11c5cde39ec04b024b1181f45e896f154f7677ff5a904c99f6af5224dc371"
4+
sha512 = "21b045d0fb82a793a6176f6d9e98dab868563ab7906e3762601e14f06a715e36c965e83e6f5c76cf016af03df48d219b86165a7c18d14284e967d0b837bf99e4"

wit/deps.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
protocols="https://github.com/edgee-cloud/edgee-wit/archive/refs/tags/v0.4.0.tar.gz"
1+
edgee = "https://github.com/edgee-cloud/edgee-wit/archive/refs/tags/v0.5.0.tar.gz"

wit/deps/protocols/consent-mapping.wit renamed to wit/deps/edgee/consent-mapping.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edgee:protocols;
1+
package edgee:components;
22

33
interface consent-mapping {
44
type dict = list<tuple<string,string>>;

wit/deps/protocols/data-collection.wit renamed to wit/deps/edgee/data-collection.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edgee:protocols;
1+
package edgee:components;
22

33
interface data-collection {
44
type dict = list<tuple<string,string>>;

wit/world.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package edgee:native;
22

33
world data-collection {
4-
export edgee:protocols/data-collection;
4+
export edgee:components/data-collection;
55
}

0 commit comments

Comments
 (0)