From 4cce216e4ea6a0cf93d709457071abb9779b059c Mon Sep 17 00:00:00 2001 From: Lawrence Bethlenfalvy Date: Tue, 20 Jan 2026 15:28:38 +0100 Subject: [PATCH] Added workflow --- {.github => .gitea}/workflows/rust.yml | 6 ++++-- .github/FUNDING.yml | 13 ------------- orchid-extension/src/coroutine_exec.rs | 9 +++------ orchid-extension/src/lib.rs | 2 +- 4 files changed, 8 insertions(+), 22 deletions(-) rename {.github => .gitea}/workflows/rust.yml (74%) delete mode 100644 .github/FUNDING.yml diff --git a/.github/workflows/rust.yml b/.gitea/workflows/rust.yml similarity index 74% rename from .github/workflows/rust.yml rename to .gitea/workflows/rust.yml index b527547..7cddcb6 100644 --- a/.github/workflows/rust.yml +++ b/.gitea/workflows/rust.yml @@ -24,6 +24,8 @@ jobs: - name: Run tests run: $HOME/.cargo/bin/cargo test --verbose - name: Clippy - run: cargo clippy + run: $HOME/.cargo/bin/cargo clippy - name: Formatting - run: cargo fmt +nightly --check + run: $HOME/.cargo/bin/cargo +nightly fmt --check + - name: No unqualified imports from orchid_api + run: $HOME/.cargo/bin/cargo xtask check-api-refs diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index cae7365..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,13 +0,0 @@ -# These are supported funding model platforms - -github: lbfalvy -patreon: lbfalvy -open_collective: # Replace with a single Open Collective username -ko_fi: lbfalvy -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/orchid-extension/src/coroutine_exec.rs b/orchid-extension/src/coroutine_exec.rs index 6b5a76c..92eb12f 100644 --- a/orchid-extension/src/coroutine_exec.rs +++ b/orchid-extension/src/coroutine_exec.rs @@ -34,10 +34,7 @@ impl BuilderCoroutine { None => panic!("Before the stream ends, we should have gotten a Halt"), Some(Command::Halt(expr)) => expr, Some(Command::Execute(expr, reply)) => call( - lambda(0, [seq( - [arg(0)], - call(Replier { reply, builder: self }.to_gen().await, [arg(0)]), - )]), + lambda(0, [seq([arg(0)], call(Replier { reply, builder: self }.to_gen().await, [arg(0)]))]), [expr], ), Some(Command::Register(expr, reply)) => @@ -67,8 +64,8 @@ impl OwnedAtom for Replier { pub async fn exec(f: impl for<'a> AsyncFnOnce(ExecHandle<'a>) -> R + 'static) -> GExpr { let (cmd_snd, cmd_recv) = channel(0); - let halt = async { Command::Halt(f(ExecHandle(cmd_snd, PhantomData)).await.to_gen().await) } - .into_stream(); + let halt = + async { Command::Halt(f(ExecHandle(cmd_snd, PhantomData)).await.to_gen().await) }.into_stream(); let coro = BuilderCoroutine(Rc::new(BuilderCoroutineData { receiver: Mutex::new(stream::select(halt, cmd_recv).boxed_local()), })); diff --git a/orchid-extension/src/lib.rs b/orchid-extension/src/lib.rs index 94ef2b8..e1c8ddd 100644 --- a/orchid-extension/src/lib.rs +++ b/orchid-extension/src/lib.rs @@ -3,6 +3,7 @@ use orchid_api as api; pub mod atom; pub mod atom_owned; pub mod atom_thin; +pub mod binary; pub mod conv; pub mod coroutine_exec; pub mod entrypoint; @@ -20,4 +21,3 @@ pub mod system; pub mod system_ctor; pub mod tokio; pub mod tree; -pub mod binary;