From c776248f8fefadcc2272d85f9b819718cf7efed9 Mon Sep 17 00:00:00 2001 From: Able Date: Sat, 9 Apr 2022 17:19:07 -0500 Subject: [PATCH] update --- Cargo.toml | 5 ++++- axel | 1 + pk_data/Cargo.toml | 17 +++++++++++++++++ pk_data/assets/metadata.toml | 3 +++ pk_data/src/lib.rs | 23 +++++++++++++++++++++++ versioning | 1 + 6 files changed, 49 insertions(+), 1 deletion(-) create mode 160000 axel create mode 100644 pk_data/Cargo.toml create mode 100644 pk_data/assets/metadata.toml create mode 100644 pk_data/src/lib.rs create mode 160000 versioning diff --git a/Cargo.toml b/Cargo.toml index 5598836..20e6fad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,9 @@ [workspace] members = [ - "libwasm", + "axel", "aos_wasm_stress_test", + "libwasm", + "pk_data", + "versioning", ] \ No newline at end of file diff --git a/axel b/axel new file mode 160000 index 0000000..e673d8f --- /dev/null +++ b/axel @@ -0,0 +1 @@ +Subproject commit e673d8f3ce20ec97ae881f372a91f73a0b517f90 diff --git a/pk_data/Cargo.toml b/pk_data/Cargo.toml new file mode 100644 index 0000000..4e4b306 --- /dev/null +++ b/pk_data/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "wasm_pk_data" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +toml = "0.5" +versioning = {path = "../versioning"} + + + + +[dependencies.serde] +version = "1.0" +features = ["derive"] \ No newline at end of file diff --git a/pk_data/assets/metadata.toml b/pk_data/assets/metadata.toml new file mode 100644 index 0000000..b0d0eb1 --- /dev/null +++ b/pk_data/assets/metadata.toml @@ -0,0 +1,3 @@ +name = "bruh" +version = [1233, 123, 123] +authors = ["John Doe", "Jane Doe"] \ No newline at end of file diff --git a/pk_data/src/lib.rs b/pk_data/src/lib.rs new file mode 100644 index 0000000..46c15bc --- /dev/null +++ b/pk_data/src/lib.rs @@ -0,0 +1,23 @@ +#![no_std] + +extern crate alloc; + +use { + alloc::{string::String, vec::Vec}, + serde::{Deserialize, Serialize}, + versioning::Version, +}; +#[repr(C)] +#[derive(Copy, Clone, Debug, Deserialize, Serialize)] +pub enum Type { + Program = 0, + Driver = 1, + Library = 2, +} + +#[derive(Debug, Deserialize)] +pub struct MetaData { + pub name: String, + pub version: Version, + pub authors: Vec, +} diff --git a/versioning b/versioning new file mode 160000 index 0000000..ef47228 --- /dev/null +++ b/versioning @@ -0,0 +1 @@ +Subproject commit ef472283e6e7a2e395ee56434087b3a6fad53ff2