lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

commit f554268fbeaad91a877bc54cc820ffb7181b6dcf
parent 1444b503f120afacd210fd43b9fae11597fcfb9d
Author: triesap <tyson@radroots.org>
Date:   Sat, 27 Dec 2025 18:07:01 +0000

events: replace typeshare kind exports with ts-rs constants


- Remove typeshare invocation from bindings Makefile target
- Drop generated typeshare-types.ts and typeshare re-exports
- Add kinds.ts with explicit KIND_* constant exports
- Generate kinds.ts via ts-rs test gated by features

Diffstat:
MMakefile | 1-
Mevents/bindings/ts/src/index.ts | 2+-
Aevents/bindings/ts/src/kinds.ts | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Devents/bindings/ts/src/typeshare-types.ts | 54------------------------------------------------------
Mevents/src/kinds.rs | 123+++++++++++++++++++++++++++++++++++++++++++++++--------------------------------
Devents/src/typeshare_kinds.rs | 101-------------------------------------------------------------------------------
6 files changed, 124 insertions(+), 207 deletions(-)

diff --git a/Makefile b/Makefile @@ -37,7 +37,6 @@ help: bindings-events: @(cd events && cargo test --features $(TS_RS_FEATURE)) - typeshare --lang typescript --output-file events/bindings/ts/src/typeshare-types.ts events @(cd events/bindings/ts && npm run build) bindings-tangle-schema: diff --git a/events/bindings/ts/src/index.ts b/events/bindings/ts/src/index.ts @@ -1,5 +1,5 @@ export * from "./lib.js" export * from "./schemas.js" export * from "./constants.js" +export * from "./kinds.js" export * from "./types.js" -export * from "./typeshare-types.js" diff --git a/events/bindings/ts/src/kinds.ts b/events/bindings/ts/src/kinds.ts @@ -0,0 +1,50 @@ +export const KIND_PROFILE = 0; +export const KIND_POST = 1; +export const KIND_FOLLOW = 3; +export const KIND_REACTION = 7; +export const KIND_SEAL = 13; +export const KIND_MESSAGE = 14; +export const KIND_MESSAGE_FILE = 15; +export const KIND_GIFT_WRAP = 1059; +export const KIND_COMMENT = 1111; +export const KIND_LIST_MUTE = 10000; +export const KIND_LIST_PINNED_NOTES = 10001; +export const KIND_LIST_READ_WRITE_RELAYS = 10002; +export const KIND_LIST_BOOKMARKS = 10003; +export const KIND_LIST_COMMUNITIES = 10004; +export const KIND_LIST_PUBLIC_CHATS = 10005; +export const KIND_LIST_BLOCKED_RELAYS = 10006; +export const KIND_LIST_SEARCH_RELAYS = 10007; +export const KIND_LIST_SIMPLE_GROUPS = 10009; +export const KIND_LIST_RELAY_FEEDS = 10012; +export const KIND_LIST_INTERESTS = 10015; +export const KIND_LIST_MEDIA_FOLLOWS = 10020; +export const KIND_LIST_EMOJIS = 10030; +export const KIND_LIST_DM_RELAYS = 10050; +export const KIND_LIST_GOOD_WIKI_AUTHORS = 10101; +export const KIND_LIST_GOOD_WIKI_RELAYS = 10102; +export const KIND_LIST_SET_FOLLOW = 30000; +export const KIND_LIST_SET_GENERIC = 30001; +export const KIND_LIST_SET_RELAY = 30002; +export const KIND_LIST_SET_BOOKMARK = 30003; +export const KIND_LIST_SET_CURATION = 30004; +export const KIND_LIST_SET_VIDEO = 30005; +export const KIND_LIST_SET_PICTURE = 30006; +export const KIND_LIST_SET_KIND_MUTE = 30007; +export const KIND_LIST_SET_INTEREST = 30015; +export const KIND_LIST_SET_EMOJI = 30030; +export const KIND_LIST_SET_RELEASE_ARTIFACT = 30063; +export const KIND_LIST_SET_APP_CURATION = 30267; +export const KIND_LIST_SET_CALENDAR = 31924; +export const KIND_LIST_SET_STARTER_PACK = 39089; +export const KIND_LIST_SET_MEDIA_STARTER_PACK = 39092; +export const KIND_FARM = 30340; +export const KIND_PLOT = 30350; +export const KIND_APP_DATA = 30078; +export const KIND_LISTING = 30402; +export const KIND_APPLICATION_HANDLER = 31990; +export const KIND_JOB_REQUEST_MIN = 5000; +export const KIND_JOB_REQUEST_MAX = 5999; +export const KIND_JOB_RESULT_MIN = 6000; +export const KIND_JOB_RESULT_MAX = 6999; +export const KIND_JOB_FEEDBACK = 7000; diff --git a/events/bindings/ts/src/typeshare-types.ts b/events/bindings/ts/src/typeshare-types.ts @@ -1,54 +0,0 @@ -/* - Generated by typeshare 1.13.3 -*/ - -export const KIND_PROFILE: number = 0; -export const KIND_POST: number = 1; -export const KIND_FOLLOW: number = 3; -export const KIND_REACTION: number = 7; -export const KIND_SEAL: number = 13; -export const KIND_MESSAGE: number = 14; -export const KIND_MESSAGE_FILE: number = 15; -export const KIND_GIFT_WRAP: number = 1059; -export const KIND_COMMENT: number = 1111; -export const KIND_LIST_MUTE: number = 10000; -export const KIND_LIST_PINNED_NOTES: number = 10001; -export const KIND_LIST_READ_WRITE_RELAYS: number = 10002; -export const KIND_LIST_BOOKMARKS: number = 10003; -export const KIND_LIST_COMMUNITIES: number = 10004; -export const KIND_LIST_PUBLIC_CHATS: number = 10005; -export const KIND_LIST_BLOCKED_RELAYS: number = 10006; -export const KIND_LIST_SEARCH_RELAYS: number = 10007; -export const KIND_LIST_SIMPLE_GROUPS: number = 10009; -export const KIND_LIST_RELAY_FEEDS: number = 10012; -export const KIND_LIST_INTERESTS: number = 10015; -export const KIND_LIST_MEDIA_FOLLOWS: number = 10020; -export const KIND_LIST_EMOJIS: number = 10030; -export const KIND_LIST_DM_RELAYS: number = 10050; -export const KIND_LIST_GOOD_WIKI_AUTHORS: number = 10101; -export const KIND_LIST_GOOD_WIKI_RELAYS: number = 10102; -export const KIND_LIST_SET_FOLLOW: number = 30000; -export const KIND_LIST_SET_GENERIC: number = 30001; -export const KIND_LIST_SET_RELAY: number = 30002; -export const KIND_LIST_SET_BOOKMARK: number = 30003; -export const KIND_LIST_SET_CURATION: number = 30004; -export const KIND_LIST_SET_VIDEO: number = 30005; -export const KIND_LIST_SET_PICTURE: number = 30006; -export const KIND_LIST_SET_KIND_MUTE: number = 30007; -export const KIND_LIST_SET_INTEREST: number = 30015; -export const KIND_LIST_SET_EMOJI: number = 30030; -export const KIND_LIST_SET_RELEASE_ARTIFACT: number = 30063; -export const KIND_LIST_SET_APP_CURATION: number = 30267; -export const KIND_LIST_SET_CALENDAR: number = 31924; -export const KIND_LIST_SET_STARTER_PACK: number = 39089; -export const KIND_LIST_SET_MEDIA_STARTER_PACK: number = 39092; -export const KIND_FARM: number = 30340; -export const KIND_PLOT: number = 30350; -export const KIND_APP_DATA: number = 30078; -export const KIND_LISTING: number = 30402; -export const KIND_APPLICATION_HANDLER: number = 31990; -export const KIND_JOB_REQUEST_MIN: number = 5000; -export const KIND_JOB_REQUEST_MAX: number = 5999; -export const KIND_JOB_RESULT_MIN: number = 6000; -export const KIND_JOB_RESULT_MAX: number = 6999; -export const KIND_JOB_FEEDBACK: number = 7000; diff --git a/events/src/kinds.rs b/events/src/kinds.rs @@ -1,103 +1,53 @@ -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_PROFILE: u32 = 0; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_POST: u32 = 1; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_FOLLOW: u32 = 3; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_REACTION: u32 = 7; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_SEAL: u32 = 13; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_MESSAGE: u32 = 14; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_MESSAGE_FILE: u32 = 15; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_GIFT_WRAP: u32 = 1059; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_COMMENT: u32 = 1111; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_MUTE: u32 = 10000; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_PINNED_NOTES: u32 = 10001; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_READ_WRITE_RELAYS: u32 = 10002; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_BOOKMARKS: u32 = 10003; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_COMMUNITIES: u32 = 10004; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_PUBLIC_CHATS: u32 = 10005; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_BLOCKED_RELAYS: u32 = 10006; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SEARCH_RELAYS: u32 = 10007; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SIMPLE_GROUPS: u32 = 10009; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_RELAY_FEEDS: u32 = 10012; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_INTERESTS: u32 = 10015; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_MEDIA_FOLLOWS: u32 = 10020; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_EMOJIS: u32 = 10030; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_DM_RELAYS: u32 = 10050; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_GOOD_WIKI_AUTHORS: u32 = 10101; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_GOOD_WIKI_RELAYS: u32 = 10102; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_FOLLOW: u32 = 30000; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_GENERIC: u32 = 30001; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_RELAY: u32 = 30002; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_BOOKMARK: u32 = 30003; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_CURATION: u32 = 30004; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_VIDEO: u32 = 30005; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_PICTURE: u32 = 30006; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_KIND_MUTE: u32 = 30007; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_INTEREST: u32 = 30015; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_EMOJI: u32 = 30030; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_RELEASE_ARTIFACT: u32 = 30063; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_APP_CURATION: u32 = 30267; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_CALENDAR: u32 = 31924; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_STARTER_PACK: u32 = 39089; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LIST_SET_MEDIA_STARTER_PACK: u32 = 39092; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_FARM: u32 = 30340; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_PLOT: u32 = 30350; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_APP_DATA: u32 = 30078; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_LISTING: u32 = 30402; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_APPLICATION_HANDLER: u32 = 31990; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_JOB_REQUEST_MIN: u32 = 5000; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_JOB_REQUEST_MAX: u32 = 5999; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_JOB_RESULT_MIN: u32 = 6000; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_JOB_RESULT_MAX: u32 = 6999; -#[cfg_attr(feature = "typeshare", typeshare::typeshare)] pub const KIND_JOB_FEEDBACK: u32 = 7000; #[inline] @@ -168,3 +118,76 @@ pub const fn request_kind_for_result_kind(kind: u32) -> Option<u32> { None } } + +#[cfg(all(test, feature = "ts-rs", feature = "std"))] +mod kinds_constants_tests { + use super::*; + use std::{env, fs, path::Path}; + + const KIND_EXPORTS: &[(&str, u32)] = &[ + ("KIND_PROFILE", KIND_PROFILE), + ("KIND_POST", KIND_POST), + ("KIND_FOLLOW", KIND_FOLLOW), + ("KIND_REACTION", KIND_REACTION), + ("KIND_SEAL", KIND_SEAL), + ("KIND_MESSAGE", KIND_MESSAGE), + ("KIND_MESSAGE_FILE", KIND_MESSAGE_FILE), + ("KIND_GIFT_WRAP", KIND_GIFT_WRAP), + ("KIND_COMMENT", KIND_COMMENT), + ("KIND_LIST_MUTE", KIND_LIST_MUTE), + ("KIND_LIST_PINNED_NOTES", KIND_LIST_PINNED_NOTES), + ("KIND_LIST_READ_WRITE_RELAYS", KIND_LIST_READ_WRITE_RELAYS), + ("KIND_LIST_BOOKMARKS", KIND_LIST_BOOKMARKS), + ("KIND_LIST_COMMUNITIES", KIND_LIST_COMMUNITIES), + ("KIND_LIST_PUBLIC_CHATS", KIND_LIST_PUBLIC_CHATS), + ("KIND_LIST_BLOCKED_RELAYS", KIND_LIST_BLOCKED_RELAYS), + ("KIND_LIST_SEARCH_RELAYS", KIND_LIST_SEARCH_RELAYS), + ("KIND_LIST_SIMPLE_GROUPS", KIND_LIST_SIMPLE_GROUPS), + ("KIND_LIST_RELAY_FEEDS", KIND_LIST_RELAY_FEEDS), + ("KIND_LIST_INTERESTS", KIND_LIST_INTERESTS), + ("KIND_LIST_MEDIA_FOLLOWS", KIND_LIST_MEDIA_FOLLOWS), + ("KIND_LIST_EMOJIS", KIND_LIST_EMOJIS), + ("KIND_LIST_DM_RELAYS", KIND_LIST_DM_RELAYS), + ("KIND_LIST_GOOD_WIKI_AUTHORS", KIND_LIST_GOOD_WIKI_AUTHORS), + ("KIND_LIST_GOOD_WIKI_RELAYS", KIND_LIST_GOOD_WIKI_RELAYS), + ("KIND_LIST_SET_FOLLOW", KIND_LIST_SET_FOLLOW), + ("KIND_LIST_SET_GENERIC", KIND_LIST_SET_GENERIC), + ("KIND_LIST_SET_RELAY", KIND_LIST_SET_RELAY), + ("KIND_LIST_SET_BOOKMARK", KIND_LIST_SET_BOOKMARK), + ("KIND_LIST_SET_CURATION", KIND_LIST_SET_CURATION), + ("KIND_LIST_SET_VIDEO", KIND_LIST_SET_VIDEO), + ("KIND_LIST_SET_PICTURE", KIND_LIST_SET_PICTURE), + ("KIND_LIST_SET_KIND_MUTE", KIND_LIST_SET_KIND_MUTE), + ("KIND_LIST_SET_INTEREST", KIND_LIST_SET_INTEREST), + ("KIND_LIST_SET_EMOJI", KIND_LIST_SET_EMOJI), + ("KIND_LIST_SET_RELEASE_ARTIFACT", KIND_LIST_SET_RELEASE_ARTIFACT), + ("KIND_LIST_SET_APP_CURATION", KIND_LIST_SET_APP_CURATION), + ("KIND_LIST_SET_CALENDAR", KIND_LIST_SET_CALENDAR), + ("KIND_LIST_SET_STARTER_PACK", KIND_LIST_SET_STARTER_PACK), + ("KIND_LIST_SET_MEDIA_STARTER_PACK", KIND_LIST_SET_MEDIA_STARTER_PACK), + ("KIND_FARM", KIND_FARM), + ("KIND_PLOT", KIND_PLOT), + ("KIND_APP_DATA", KIND_APP_DATA), + ("KIND_LISTING", KIND_LISTING), + ("KIND_APPLICATION_HANDLER", KIND_APPLICATION_HANDLER), + ("KIND_JOB_REQUEST_MIN", KIND_JOB_REQUEST_MIN), + ("KIND_JOB_REQUEST_MAX", KIND_JOB_REQUEST_MAX), + ("KIND_JOB_RESULT_MIN", KIND_JOB_RESULT_MIN), + ("KIND_JOB_RESULT_MAX", KIND_JOB_RESULT_MAX), + ("KIND_JOB_FEEDBACK", KIND_JOB_FEEDBACK), + ]; + + #[test] + fn export_kind_constants() { + let out_dir = env::var("TS_RS_EXPORT_DIR").unwrap_or_else(|_| "./bindings".to_string()); + let path = Path::new(&out_dir).join("kinds.ts"); + if let Some(parent) = path.parent() { + fs::create_dir_all(parent).expect("create ts export dir"); + } + let mut content = String::new(); + for (name, value) in KIND_EXPORTS { + content.push_str(&format!("export const {name} = {value};\n")); + } + fs::write(&path, content).expect("write kinds"); + } +} diff --git a/events/src/typeshare_kinds.rs b/events/src/typeshare_kinds.rs @@ -1,101 +0,0 @@ -#[typeshare::typeshare] -pub const KIND_PROFILE: u32 = 0; -#[typeshare::typeshare] -pub const KIND_POST: u32 = 1; -#[typeshare::typeshare] -pub const KIND_FOLLOW: u32 = 3; -#[typeshare::typeshare] -pub const KIND_REACTION: u32 = 7; -#[typeshare::typeshare] -pub const KIND_SEAL: u32 = 13; -#[typeshare::typeshare] -pub const KIND_MESSAGE: u32 = 14; -#[typeshare::typeshare] -pub const KIND_MESSAGE_FILE: u32 = 15; -#[typeshare::typeshare] -pub const KIND_GIFT_WRAP: u32 = 1059; -#[typeshare::typeshare] -pub const KIND_COMMENT: u32 = 1111; -#[typeshare::typeshare] -pub const KIND_LIST_MUTE: u32 = 10000; -#[typeshare::typeshare] -pub const KIND_LIST_PINNED_NOTES: u32 = 10001; -#[typeshare::typeshare] -pub const KIND_LIST_READ_WRITE_RELAYS: u32 = 10002; -#[typeshare::typeshare] -pub const KIND_LIST_BOOKMARKS: u32 = 10003; -#[typeshare::typeshare] -pub const KIND_LIST_COMMUNITIES: u32 = 10004; -#[typeshare::typeshare] -pub const KIND_LIST_PUBLIC_CHATS: u32 = 10005; -#[typeshare::typeshare] -pub const KIND_LIST_BLOCKED_RELAYS: u32 = 10006; -#[typeshare::typeshare] -pub const KIND_LIST_SEARCH_RELAYS: u32 = 10007; -#[typeshare::typeshare] -pub const KIND_LIST_SIMPLE_GROUPS: u32 = 10009; -#[typeshare::typeshare] -pub const KIND_LIST_RELAY_FEEDS: u32 = 10012; -#[typeshare::typeshare] -pub const KIND_LIST_INTERESTS: u32 = 10015; -#[typeshare::typeshare] -pub const KIND_LIST_MEDIA_FOLLOWS: u32 = 10020; -#[typeshare::typeshare] -pub const KIND_LIST_EMOJIS: u32 = 10030; -#[typeshare::typeshare] -pub const KIND_LIST_DM_RELAYS: u32 = 10050; -#[typeshare::typeshare] -pub const KIND_LIST_GOOD_WIKI_AUTHORS: u32 = 10101; -#[typeshare::typeshare] -pub const KIND_LIST_GOOD_WIKI_RELAYS: u32 = 10102; -#[typeshare::typeshare] -pub const KIND_LIST_SET_FOLLOW: u32 = 30000; -#[typeshare::typeshare] -pub const KIND_LIST_SET_GENERIC: u32 = 30001; -#[typeshare::typeshare] -pub const KIND_LIST_SET_RELAY: u32 = 30002; -#[typeshare::typeshare] -pub const KIND_LIST_SET_BOOKMARK: u32 = 30003; -#[typeshare::typeshare] -pub const KIND_LIST_SET_CURATION: u32 = 30004; -#[typeshare::typeshare] -pub const KIND_LIST_SET_VIDEO: u32 = 30005; -#[typeshare::typeshare] -pub const KIND_LIST_SET_PICTURE: u32 = 30006; -#[typeshare::typeshare] -pub const KIND_LIST_SET_KIND_MUTE: u32 = 30007; -#[typeshare::typeshare] -pub const KIND_LIST_SET_INTEREST: u32 = 30015; -#[typeshare::typeshare] -pub const KIND_LIST_SET_EMOJI: u32 = 30030; -#[typeshare::typeshare] -pub const KIND_LIST_SET_RELEASE_ARTIFACT: u32 = 30063; -#[typeshare::typeshare] -pub const KIND_LIST_SET_APP_CURATION: u32 = 30267; -#[typeshare::typeshare] -pub const KIND_LIST_SET_CALENDAR: u32 = 31924; -#[typeshare::typeshare] -pub const KIND_LIST_SET_STARTER_PACK: u32 = 39089; -#[typeshare::typeshare] -pub const KIND_LIST_SET_MEDIA_STARTER_PACK: u32 = 39092; -#[typeshare::typeshare] -pub const KIND_FARM: u32 = 30340; -#[typeshare::typeshare] -pub const KIND_PLOT: u32 = 30350; -#[typeshare::typeshare] -pub const KIND_APP_DATA: u32 = 30078; -#[typeshare::typeshare] -pub const KIND_LISTING: u32 = 30402; -#[typeshare::typeshare] -pub const KIND_APPLICATION_HANDLER: u32 = 31990; - -#[typeshare::typeshare] -pub const KIND_JOB_REQUEST_MIN: u32 = 5000; -#[typeshare::typeshare] -pub const KIND_JOB_REQUEST_MAX: u32 = 5999; -#[typeshare::typeshare] -pub const KIND_JOB_RESULT_MIN: u32 = 6000; -#[typeshare::typeshare] -pub const KIND_JOB_RESULT_MAX: u32 = 6999; -#[typeshare::typeshare] -pub const KIND_JOB_FEEDBACK: u32 = 7000;