diff --git a/apps/journal/Cargo.toml b/apps/journal/Cargo.toml index a555b0a..3655ebb 100644 --- a/apps/journal/Cargo.toml +++ b/apps/journal/Cargo.toml @@ -2,6 +2,7 @@ name = "panorama-journal" version = "0.1.0" edition = "2021" +default-target = "wasm32-unknown-unknown" [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/panorama-abi/Cargo.toml b/crates/panorama-abi/Cargo.toml new file mode 100644 index 0000000..7d50ba8 --- /dev/null +++ b/crates/panorama-abi/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "panorama-abi" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/crates/panorama-abi/src/lib.rs b/crates/panorama-abi/src/lib.rs new file mode 100644 index 0000000..6ce6e82 --- /dev/null +++ b/crates/panorama-abi/src/lib.rs @@ -0,0 +1,5 @@ +#[repr(C)] +pub struct HttpRequest {} + +#[repr(C)] +pub struct HttpResponse {} \ No newline at end of file diff --git a/crates/panorama-core/data/base_fields.json b/crates/panorama-core/data/base_fields.json deleted file mode 100644 index 89fd6cc..0000000 --- a/crates/panorama-core/data/base_fields.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "./base_fields_schema.json", - "fields": [ - { - "fq_field_name": "/journal/page/content", - "relation_name": "content", - "relation_field_name": "string", - "type": "string", - "is_fts_enabled": true - }, - { - "fq_field_name": "/mail/config/imap_hostname", - "relation_name": "mail_config", - "relation_field_name": "imap_hostname", - "type": "string" - }, - { - "fq_field_name": "/mail/config/imap_port", - "relation_name": "mail_config", - "relation_field_name": "imap_port", - "type": "int" - }, - { - "fq_field_name": "/mail/config/imap_username", - "relation_name": "mail_config", - "relation_field_name": "imap_username", - "type": "string" - }, - { - "fq_field_name": "/mail/config/imap_password", - "relation_name": "mail_config", - "relation_field_name": "imap_password", - "type": "string" - } - ] -} diff --git a/crates/panorama-core/data/base_fields_schema.json b/crates/panorama-core/data/base_fields_schema.json deleted file mode 100644 index c49cbbe..0000000 --- a/crates/panorama-core/data/base_fields_schema.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "properties": { - "fields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "fq_field_name", - "relation_name", - "relation_field_name", - "type" - ], - "properties": { - "fq_field_name": { - "type": "string" - }, - "relation_name": { - "type": "string" - }, - "relation_field_name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "is_fts_enabled": { - "type": "boolean" - } - } - } - } - }, - "title": "Base Panorama Fields" -}