abi crate

This commit is contained in:
Michael Zhang 2024-06-24 10:31:55 -05:00
parent 99d50db212
commit 99046dba29
5 changed files with 12 additions and 72 deletions

View file

@ -2,6 +2,7 @@
name = "panorama-journal" name = "panorama-journal"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
default-target = "wasm32-unknown-unknown"
[lib] [lib]
crate-type = ["cdylib", "rlib"] crate-type = ["cdylib", "rlib"]

View file

@ -0,0 +1,6 @@
[package]
name = "panorama-abi"
version = "0.1.0"
edition = "2021"
[dependencies]

View file

@ -0,0 +1,5 @@
#[repr(C)]
pub struct HttpRequest {}
#[repr(C)]
pub struct HttpResponse {}

View file

@ -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"
}
]
}

View file

@ -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"
}