lex_hello worked for a second just now

this is just a backup however
This commit is contained in:
2025-02-02 10:20:03 +01:00
parent 2b79e96dc9
commit 1556d54226
45 changed files with 646 additions and 371 deletions

View File

@@ -1,4 +1,16 @@
use orchid_extension::entrypoint::ExtensionData;
use orchid_std::StdSystem;
use std::mem;
use std::rc::Rc;
pub fn main() { ExtensionData::new("orchid-std::main", &[&StdSystem]).main() }
use orchid_extension::entrypoint::{ExtensionData, extension_main_logic};
use orchid_std::StdSystem;
use tokio::task::{LocalSet, spawn_local};
#[tokio::main(flavor = "current_thread")]
pub async fn main() {
LocalSet::new()
.run_until(async {
let data = ExtensionData::new("orchid-std::main", &[&StdSystem]);
extension_main_logic(data, Rc::new(|fut| mem::drop(spawn_local(fut)))).await;
})
.await
}