repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bin_factory.rs | wasmer-os/src/bin_factory.rs | #![allow(dead_code)]
#![allow(unused)]
use crate::wasmer::Module;
use crate::wasmer::Store;
use bytes::Bytes;
use derivative::*;
use serde::*;
use sha2::{Digest, Sha256};
use wasmer::AsStoreRef;
use std::collections::HashMap;
use std::collections::HashSet;
use std::ops::Deref;
use std::ops::DerefMut;
use std::sync::ato... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/err.rs | wasmer-os/src/err.rs | #![allow(dead_code)]
pub const ERR_OK: u32 = 0;
pub const ERR_EPERM: u32 = 1; /* Operation not permitted */
pub const ERR_ENOENT: u32 = 2;
pub const ERR_ESRCH: u32 = 3; /* No such process */
pub const ERR_EINTR: u32 = 4; /* Interrupted system call */
pub const ERR_EIO: u32 = 5; /* I/O error */
pub const ERR_ENXIO: u32... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/cconst.rs | wasmer-os/src/cconst.rs | use super::tty::Tty;
pub struct ConsoleConst {}
impl ConsoleConst {
pub const TERM_KEY_ENTER: u32 = 13;
pub const TERM_KEY_BACKSPACE: u32 = 8;
pub const TERM_KEY_INSERT: u32 = 45;
pub const TERM_KEY_DEL: u32 = 46;
pub const TERM_KEY_TAB: u32 = 9;
pub const TERM_KEY_HOME: u32 = 36;
pub cons... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/pipe.rs | wasmer-os/src/pipe.rs | #![allow(unused_imports)]
#![allow(dead_code)]
use bytes::{Buf, BytesMut};
use std::collections::HashMap;
use std::sync::Arc;
use std::sync::Mutex;
use tokio::sync::mpsc;
use tokio::sync::watch;
use tokio::sync::Mutex as AsyncMutex;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
us... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/reactor.rs | wasmer-os/src/reactor.rs | #![allow(unused_imports)]
#![allow(dead_code)]
use bytes::{Buf, BytesMut};
use std::collections::HashMap;
use std::num::NonZeroU32;
use std::sync::atomic::AtomicU32;
use std::sync::atomic::Ordering;
use std::sync::Arc;
use std::sync::Weak;
use std::sync::Mutex;
use tokio::sync::mpsc;
use tokio::sync::watch;
use tokio::... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/common.rs | wasmer-os/src/common.rs | pub type Pid = u32;
pub const MAX_MPSC: usize = std::usize::MAX >> 3;
pub fn is_cleared_line(text: &str) -> bool {
// returns true if the displayed line is all blank on the screen
text.ends_with("\r\x1b[0K") || text.ends_with("\x1b[0K\r") || text.ends_with("\n")
}
pub fn is_mobile(user_agent: &str) -> bool {... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/console.rs | wasmer-os/src/console.rs | #![allow(unused_imports)]
#![allow(dead_code)]
use std::collections::HashMap;
use std::path::Path;
use std::sync::Arc;
use std::sync::Mutex;
use std::sync::atomic::AtomicBool;
use tokio::sync::mpsc;
use tokio::sync::RwLock;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
#[cfg(featur... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/job.rs | wasmer-os/src/job.rs | #![allow(unused_imports)]
#![allow(dead_code)]
use std::num::NonZeroU32;
use std::sync::Arc;
use std::sync::Mutex;
use tokio::sync::mpsc;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use crate::common::*;
use super::environment::*;
use super::fd::*;
use super::fs::*;
use super::... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/source.rs | wasmer-os/src/builtins/source.rs | use std::collections::VecDeque;
use std::future::Future;
use std::path::Path;
use std::pin::Pin;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use crate::err;
use crate::eval::eval;
use crate::eval::EvalContext;
use crate::eval::EvalStatus;
use crate::eval::ExecResponse;
use crate... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/readonly.rs | wasmer-os/src/builtins/readonly.rs | use std::future::Future;
use std::pin::Pin;
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::stdio::*;
pub(super) fn readonly(
args: &[String],
mut ctx: EvalContext,
stdio: Stdio,
) -> Pin<Box<dyn Future<Output = ExecResponse> + Send>> {
if args.len() == 1 || args[1] == "-p" {
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/call.rs | wasmer-os/src/builtins/call.rs | use std::future::Future;
use std::pin::Pin;
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::stdio::*;
use crate::tty::*;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
#[allow(dead_code, unused)]
pub(super) fn call(
args: &[String],
mut ctx: EvalCo... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/cd.rs | wasmer-os/src/builtins/cd.rs | use std::future::Future;
use std::path::Path;
use std::pin::Pin;
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::fs::AsyncifyFileSystem;
use crate::stdio::*;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
pub(super) fn cd(
args: &[String],
mut ctx:... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/help.rs | wasmer-os/src/builtins/help.rs | use std::future::Future;
use std::pin::Pin;
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::stdio::*;
use crate::tty::Tty;
pub(super) fn help(
_args: &[String],
ctx: EvalContext,
mut stdio: Stdio,
) -> Pin<Box<dyn Future<Output = ExecResponse> + Send>> {
Box::pin(async move {
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/pwd.rs | wasmer-os/src/builtins/pwd.rs | use std::future::Future;
use std::pin::Pin;
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::stdio::*;
pub(super) fn pwd(
args: &[String],
ctx: EvalContext,
mut stdio: Stdio,
) -> Pin<Box<dyn Future<Output = ExecResponse> + Send>> {
if args.len() > 1 {
return Box::pin(as... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/umount.rs | wasmer-os/src/builtins/umount.rs | use std::future::Future;
use std::pin::Pin;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::stdio::*;
use crate::tty::*;
pub(super) fn umount(
args: &[String],
mut ctx: EvalContext,
mut stdio: Stdio... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/mod.rs | wasmer-os/src/builtins/mod.rs | mod about;
mod cd;
mod exit;
mod export;
mod help;
mod mount;
mod pwd;
mod readonly;
mod reset;
mod source;
mod umount;
mod unset;
mod wax;
mod call;
use about::*;
use cd::*;
use exit::*;
use export::*;
use help::*;
use mount::*;
use pwd::*;
use readonly::*;
use reset::*;
use source::*;
use umount::*;
use unset::*;
us... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/unset.rs | wasmer-os/src/builtins/unset.rs | use std::future::Future;
use std::pin::Pin;
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::stdio::*;
pub(super) fn unset(
args: &[String],
mut ctx: EvalContext,
_stdio: Stdio,
) -> Pin<Box<dyn Future<Output = ExecResponse> + Send>> {
for arg in &args[1..] {
ctx.env.uns... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/export.rs | wasmer-os/src/builtins/export.rs | use std::future::Future;
use std::pin::Pin;
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::stdio::*;
pub(super) fn export(
args: &[String],
mut ctx: EvalContext,
stdio: Stdio,
) -> Pin<Box<dyn Future<Output = ExecResponse> + Send>> {
if args.len() <= 1 || args[1] == "-p" {
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/exit.rs | wasmer-os/src/builtins/exit.rs | use std::future::Future;
use std::pin::Pin;
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::stdio::*;
pub(super) fn exit(
_args: &[String],
ctx: EvalContext,
_stdio: Stdio,
) -> Pin<Box<dyn Future<Output = ExecResponse> + Send>> {
Box::pin(async move {
ctx.abi.exit().aw... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/reset.rs | wasmer-os/src/builtins/reset.rs | use std::future::Future;
use std::pin::Pin;
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::stdio::*;
pub(super) fn reset(
args: &[String],
ctx: EvalContext,
mut stdio: Stdio,
) -> Pin<Box<dyn Future<Output = ExecResponse> + Send>> {
if args.len() > 1 {
return Box::pin(... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/wax.rs | wasmer-os/src/builtins/wax.rs | use std::future::Future;
use std::pin::Pin;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use crate::err;
use crate::eval::eval;
use crate::eval::EvalContext;
use crate::eval::EvalStatus;
use crate::eval::ExecResponse;
use crate::fd::FdFlag;
use crate::pipe::*;
use crate::stdio::*... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/mount.rs | wasmer-os/src/builtins/mount.rs | use std::future::Future;
use std::path::Path;
use std::pin::Pin;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasmer_bus_process::prelude::StdioMode;
use wasmer_vfs::FileSystem;
use crate::bus::ProcessExecFactory;
use crate::bus::SubProcessFactory;
use crate::bus::SubProcessM... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/builtins/about.rs | wasmer-os/src/builtins/about.rs | use std::future::Future;
use std::pin::Pin;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use crate::eval::EvalContext;
use crate::eval::ExecResponse;
use crate::stdio::*;
use crate::tty::Tty;
pub(super) fn about(
args: &[String],
ctx: EvalContext,
mut stdio: Stdio,
)... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/api/webgl.rs | wasmer-os/src/api/webgl.rs | use wasmer_bus_webgl::api::glenum::*;
pub use wasmer_bus_webgl::api::glenum;
use std::fmt::*;
use std::result::Result;
use std::fmt::Result as FmtResult;
use crate::api::AsyncResult;
use crate::api::SerializationFormat;
pub trait WebGlAbi
where Self: Send + Sync
{
fn context(&self) -> Box<dyn RenderingContextAbi>... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/api/abi.rs | wasmer-os/src/api/abi.rs | use async_trait::async_trait;
use tracing::error;
use wasmer::Store;
use wasmer::MemoryType;
use wasmer::Module;
#[cfg(feature = "sys")]
use wasmer::vm::MemoryStyle;
use wasmer::vm::VMMemory;
use wasmer_wasi::WasiThreadError;
use std::future::Future;
use std::pin::Pin;
use tokio::sync::mpsc;
use wasmer_bus::abi::Serial... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/api/result.rs | wasmer-os/src/api/result.rs | use std::future::Future;
use std::pin::Pin;
use std::task::Context;
use std::task::Poll;
use derivative::Derivative;
use tokio::sync::mpsc;
use wasmer_bus::abi::SerializationFormat;
use wasmer_vbus::BusDataFormat;
use wasmer_vbus::BusInvocationEvent;
use wasmer_vbus::InstantInvocation;
use wasmer_vbus::VirtualBusError;... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/api/system.rs | wasmer-os/src/api/system.rs | use derivative::*;
use once_cell::sync::Lazy;
use std::ops::Deref;
use std::sync::Arc;
use std::sync::Mutex;
use super::*;
static SYSTEM_CONTROL: Lazy<Mutex<Option<Arc<dyn SystemAbi + Send + Sync + 'static>>>> =
Lazy::new(|| Mutex::new(None));
static SYSTEM_LOAD: Lazy<&'static (dyn SystemAbi + Send + Sync + 'sta... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/api/mod.rs | wasmer-os/src/api/mod.rs | pub mod abi;
mod result;
mod system;
mod threadlocal;
mod wizard;
mod ws;
mod webgl;
pub use abi::*;
pub use result::*;
pub use system::*;
pub use threadlocal::*;
pub use wasmer_bus::abi::SerializationFormat;
pub use wizard::*;
pub use ws::*;
pub use webgl::*; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/api/ws.rs | wasmer-os/src/api/ws.rs | use async_trait::async_trait;
// This ABI implements a general purpose web socket
#[async_trait]
pub trait WebSocketAbi {
fn set_onopen(&mut self, callback: Box<dyn FnMut()>);
fn set_onclose(&mut self, callback: Box<dyn Fn() + Send + 'static>);
fn set_onmessage(&mut self, callback: Box<dyn Fn(Vec<u8>) + ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/api/wizard.rs | wasmer-os/src/api/wizard.rs | pub struct WizardPrompt {
pub prompt: String,
pub echo: bool,
}
pub enum WizardAction {
Challenge {
name: String,
instructions: String,
prompts: Vec<WizardPrompt>,
},
Shell,
Terminate {
with_message: Option<String>,
},
}
/// The wizard ABI allows for actions... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/api/threadlocal.rs | wasmer-os/src/api/threadlocal.rs | use crate::wasmer::Module;
use std::collections::HashMap;
#[derive(Default)]
pub struct ThreadLocal {
pub modules: HashMap<String, Module>,
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/exec_pipeline.rs | wasmer-os/src/eval/exec_pipeline.rs | use std::ops::Deref;
use super::*;
use crate::ast;
use crate::pipe::*;
use crate::wasmer_vfs::FileSystem;
use crate::wasmer_vfs::FsError;
use tokio::select;
pub(super) async fn exec_pipeline<'a>(
mut ctx: EvalContext,
builtins: &Builtins,
exec_sync: bool,
show_result: &mut bool,
pipeline: &'a ast:... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/process.rs | wasmer-os/src/eval/process.rs | use std::num::NonZeroU32;
use std::sync::atomic::AtomicU32;
use std::sync::atomic::Ordering;
use std::sync::Arc;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use crate::api::*;
use crate::bus::WasmCallerContext;
use crate::common::*;
use crate::err::*;
use crate::wasmer_wasi::Was... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/andor_list.rs | wasmer-os/src/eval/andor_list.rs | use super::*;
use crate::ast;
pub(super) async fn andor_list<'a>(
mut ctx: EvalContext,
builtins: &Builtins,
exec_sync: bool,
show_result: &mut bool,
list: &'a ast::AndOr<'a>,
) -> (EvalContext, u32) {
let mut ret = 0;
for (op, pipeline) in &list.pipelines {
let (c, r) = exec_pipeli... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/load_bin.rs | wasmer-os/src/eval/load_bin.rs | #![allow(dead_code)]
#![allow(unused)]
use bytes::Bytes;
use std::collections::HashSet;
use std::collections::HashMap;
use std::io::Read;
use std::path::Path;
use std::path::PathBuf;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use super::AliasConfig;
use super::BinaryPackage;
us... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/bus_feeder.rs | wasmer-os/src/eval/bus_feeder.rs | use std::{task::{Poll, Context}, pin::Pin, collections::HashMap, ops::DerefMut, marker::PhantomData};
use tokio::sync::mpsc;
use wasmer_bus::{abi::SerializationFormat, prelude::BusError};
use wasmer_vbus::{VirtualBusError, BusDataFormat};
use crate::{bus::conv_format, api::abi::SystemAbiExt};
#[allow(unused_imports, ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/runtime.rs | wasmer-os/src/eval/runtime.rs | use std::ops::Deref;
use std::pin::Pin;
use std::sync::{Arc, Mutex, RwLock};
use std::sync::atomic::{AtomicU32, Ordering};
use std::task::{Context, Poll};
use bytes::Bytes;
use derivative::Derivative;
use tokio::sync::mpsc;
use tokio::sync::mpsc::error::TryRecvError;
use wasmer::{Module, Store};
use wasmer::vm::VMMemor... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/eval_arg.rs | wasmer-os/src/eval/eval_arg.rs | use super::*;
pub(super) fn eval_arg(env: &Environment, last_return: u32, arg: &str) -> String {
if arg.as_bytes()[0] == b'$' {
let key: &str = &arg[1..];
match key {
"?" => format!("{}", last_return),
_ => match env.get(key) {
Some(v) => v.clone(),
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/mod.rs | wasmer-os/src/eval/mod.rs | #![allow(dead_code)]
#![allow(unused)]
pub(crate) mod andor_list;
pub(crate) mod complete_command;
pub(crate) mod eval_arg;
pub(crate) mod exec;
pub(crate) mod exec_pipeline;
pub(crate) mod factory;
pub(crate) mod load_bin;
pub(crate) mod process;
pub(crate) mod runtime;
pub(crate) mod bus_feeder;
pub(crate) mod bus_l... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/bus_listener.rs | wasmer-os/src/eval/bus_listener.rs | use std::{sync::{Arc, Mutex}, pin::Pin, task::{Context, Poll}};
use tokio::sync::mpsc;
use wasmer_bus::abi::SerializationFormat;
use wasmer_vbus::{VirtualBusError, VirtualBusListener, BusCallEvent, VirtualBusCalled, BusDataFormat};
use crate::api::{System, abi::SystemAbiExt};
use super::{RuntimeCallStateChange, Runt... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/complete_command.rs | wasmer-os/src/eval/complete_command.rs | use super::*;
use crate::ast;
pub(super) async fn complete_command<'a>(
mut ctx: EvalContext,
builtins: &Builtins,
cc: &'a ast::CompleteCommand<'a>,
show_result: &mut bool,
) -> (EvalContext, u32) {
let mut ret = 0;
for (op, list) in &cc.and_ors {
let (c, r) = andor_list(ctx, builtins, ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/factory.rs | wasmer-os/src/eval/factory.rs | use tokio::sync::oneshot;
use crate::api::*;
use crate::bin_factory::*;
use crate::bus::WasmCheckpoint;
use crate::eval::*;
use crate::fd::*;
use crate::pipe::*;
use crate::state::*;
use crate::stdout::*;
use crate::tty::*;
use crate::grammar::ast::Redirect;
pub struct SpawnContext {
pub abi: Arc<dyn ConsoleAbi>,... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/exec.rs | wasmer-os/src/eval/exec.rs | #![allow(dead_code)]
#![allow(unused)]
use bytes::Bytes;
use serde::{Deserialize, Serialize};
use sha2::digest::generic_array::sequence::Lengthen;
use wasmer::Extern;
use wasmer::ExternType;
use wasmer::ImportType;
use wasmer::Memory;
use wasmer::MemoryType;
use wasmer::Pages;
use wasmer_wasi::import_object_for_all_was... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/eval/bus_handle.rs | wasmer-os/src/eval/bus_handle.rs | use std::{task::{Poll, Context}, pin::Pin, collections::HashMap, ops::DerefMut, marker::PhantomData, time::Duration};
use async_trait::async_trait;
use derivative::Derivative;
use serde::*;
use tokio::sync::mpsc;
use wasmer_bus::{abi::SerializationFormat, prelude::BusError};
use wasmer_vbus::{VirtualBusError, BusDataF... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/tty.rs | wasmer-os/src/bus/tty.rs | #![allow(unused_imports, dead_code)]
use crate::common::MAX_MPSC;
use crate::fd::FdFlag;
use crate::fd::FdMsg;
use async_trait::async_trait;
use wasmer_bus_fuse::fuse::FsResult;
use wasmer_vbus::BusDataFormat;
use wasmer_vbus::BusInvocationEvent;
use wasmer_vbus::InstantInvocation;
use wasmer_vbus::VirtualBusError;
use... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/sub_process.rs | wasmer-os/src/bus/sub_process.rs | #![allow(dead_code)]
use std::collections::HashMap;
use std::future::Future;
use std::pin::Pin;
use std::sync::Arc;
use std::sync::Mutex;
use std::sync::Weak;
use std::task::Context;
use std::task::Poll;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasmer_bus::abi::BusError;
u... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/process.rs | wasmer-os/src/bus/process.rs | use async_trait::async_trait;
use derivative::*;
#[cfg(feature = "sys")]
use wasmer::Engine;
use wasmer_vbus::BusDataFormat;
use std::future::Future;
use std::ops::Deref;
use std::pin::Pin;
use std::sync::Arc;
use std::sync::Mutex;
use tokio::sync::mpsc;
use tokio::sync::RwLock;
#[allow(unused_imports, dead_code)]
use ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/webgl.rs | wasmer-os/src/bus/webgl.rs | #![allow(dead_code)]
use wasmer_bus_webgl::api::glenum::*;
use wasmer_bus_webgl::api::WebGlContextRequest;
use wasmer_vbus::{BusDataFormat, VirtualBusInvoked, VirtualBusInvocation};
use std::{sync::Arc, task::{Poll, Context}, pin::Pin};
use wasmer_bus_webgl::api;
use std::ops::Deref;
use super::*;
use crate::api::*;
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | true |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/standard.rs | wasmer-os/src/bus/standard.rs | use std::pin::Pin;
use std::task::Context;
use std::task::Poll;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasmer_vbus::BusDataFormat;
use wasmer_vbus::InstantInvocation;
use wasmer_vbus::VirtualBusError;
use wasmer_vbus::VirtualBusInvokable;
use wasmer_vbus::VirtualBusInvok... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/feeder.rs | wasmer-os/src/bus/feeder.rs | use serde::*;
use std::sync::Arc;
use std::sync::Mutex;
use std::collections::HashMap;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
pub use wasmer_bus::abi::BusError;
pub use wasmer_bus::abi::CallHandle;
use super::*;
use crate::api::System;
use crate::api::SerializationFormat;
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/time.rs | wasmer-os/src/bus/time.rs | #![allow(dead_code)]
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasmer_vbus::{InstantInvocation, VirtualBusInvoked};
use crate::api::*;
pub fn sleep(system: System, duration_ms: u128) -> Box<dyn VirtualBusInvoked> {
let result = system.sleep(duration_ms);
Box::new(... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/util.rs | wasmer-os/src/bus/util.rs | use serde::*;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasmer_bus::abi::BusError;
use wasmer_bus::abi::SerializationFormat;
use wasmer_vbus::BusDataFormat;
use wasmer_vbus::InstantInvocation;
use wasmer_vbus::VirtualBusError;
pub fn conv_error(fault: VirtualBusError) -> B... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/reqwest.rs | wasmer-os/src/bus/reqwest.rs | #![allow(dead_code)]
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasmer_bus_reqwest::api;
use wasmer_bus_reqwest::prelude::*;
use wasmer_vbus::InstantInvocation;
use wasmer_vbus::VirtualBusInvoked;
use crate::api::*;
pub fn reqwest(
system: System,
request: api::Req... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/mod.rs | wasmer-os/src/bus/mod.rs | mod caller_context;
mod factory;
mod feeder;
mod invokable;
mod process;
mod reqwest;
mod standard;
mod sub_process;
mod time;
mod util;
mod ws;
mod tty;
//mod webgl;
use std::convert::TryInto;
pub use caller_context::*;
pub(crate) use invokable::*;
pub(crate) use process::*;
pub(crate) use sub_process::*;
use util::... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/ws.rs | wasmer-os/src/bus/ws.rs | use crate::common::MAX_MPSC;
use derivative::Derivative;
use tokio::sync::broadcast;
use wasmer_bus_ws::model::SendResult;
use wasmer_vbus::BusDataFormat;
use wasmer_vbus::BusInvocationEvent;
use wasmer_vbus::InstantInvocation;
use wasmer_vbus::VirtualBusError;
use wasmer_vbus::VirtualBusInvocation;
use wasmer_vbus::Vi... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/caller_context.rs | wasmer-os/src/bus/caller_context.rs | use std::num::NonZeroU32;
use std::ops::Deref;
use std::ops::DerefMut;
use std::pin::Pin;
use std::sync::Mutex;
use std::sync::atomic::AtomicBool;
use std::sync::atomic::AtomicU32;
use std::sync::atomic::Ordering;
use std::sync::Arc;
use std::task::Context;
use std::task::Poll;
use tokio::sync::mpsc;
use tracing::trace... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/invokable.rs | wasmer-os/src/bus/invokable.rs | use async_trait::async_trait;
use serde::*;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasmer_bus::abi::BusError;
use wasmer_bus::abi::SerializationFormat;
use wasmer_vbus::BusDataFormat;
use crate::api::AsyncResult;
use std::future::Future;
use std::pin::Pin;
pub enum Inv... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/bus/factory.rs | wasmer-os/src/bus/factory.rs | use async_trait::async_trait;
use wasmer_bus::abi::SerializationFormat;
use wasmer_vbus::BusDataFormat;
use std::collections::HashMap;
use std::sync::Arc;
use std::sync::Mutex;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasmer_bus::abi::BusError;
use wasmer_bus::abi::CallHan... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/fs/union.rs | wasmer-os/src/fs/union.rs | #![allow(dead_code)]
#![allow(unused)]
use crate::wasmer_vfs::*;
use std::borrow::Cow;
use std::ops::Add;
use std::path::{Path, PathBuf};
use std::sync::atomic::AtomicU32;
use std::sync::Arc;
use std::sync::Mutex;
use std::sync::Weak;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/fs/ext.rs | wasmer-os/src/fs/ext.rs | use std::collections::VecDeque;
use std::path::*;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use crate::wasmer_vfs::*;
pub trait FileSystemExt<T>
where
T: FileSystem,
{
fn search_pattern(
&self,
path: &Path,
starts_with: Option<&str>,
en... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/fs/tmp.rs | wasmer-os/src/fs/tmp.rs | #![allow(dead_code)]
#![allow(unused)]
use std::collections::HashMap;
use std::io::prelude::*;
use std::io::SeekFrom;
use std::io::{self};
use std::path::{Path, PathBuf};
use std::result::Result as StdResult;
use std::sync::atomic::AtomicU32;
use std::sync::Arc;
use std::sync::Mutex;
use tokio::sync::mpsc;
#[allow(unus... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/fs/asyncify.rs | wasmer-os/src/fs/asyncify.rs | use std::ops::Deref;
use std::ops::DerefMut;
use std::path::Path;
use std::sync::Arc;
use std::sync::Mutex;
use wasmer_vfs::*;
use crate::api::*;
#[derive(Debug, Clone)]
pub struct AsyncifyFileSystem {
system: System,
fs: Arc<dyn FileSystem>,
}
impl AsyncifyFileSystem {
pub fn new(fs: impl FileSystem) ->... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/fs/api.rs | wasmer-os/src/fs/api.rs | use crate::bus::WasmCallerContext;
use crate::wasmer_vfs::*;
pub trait MountedFileSystem
where
Self: FileSystem + std::fmt::Debug,
{
fn set_ctx(&self, ctx: &WasmCallerContext);
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/fs/utils.rs | wasmer-os/src/fs/utils.rs | use crate::wasmer_vfs::FileSystem;
use include_dir::{include_dir, Dir};
use std::path::Path;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use super::*;
static STATIC_DIR: Dir = include_dir!("$CARGO_MANIFEST_DIR/static");
pub fn create_root_fs(inner: Option<Box<dyn MountedFileSy... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/fs/mod.rs | wasmer-os/src/fs/mod.rs | mod api;
mod asyncify;
mod ext;
mod fuse;
mod proc;
mod tmp;
mod union;
mod utils;
pub use api::*;
pub use asyncify::*;
pub use ext::*;
pub use fuse::*;
pub use proc::*;
pub use tmp::*;
pub use union::*;
pub use utils::*; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/fs/fuse.rs | wasmer-os/src/fs/fuse.rs | #![allow(unused_variables, dead_code)]
use derivative::*;
use std::io;
use std::io::Read;
use std::io::Seek;
use std::io::SeekFrom;
use std::io::Write;
use std::path::Path;
use std::sync::Arc;
use std::sync::Mutex;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasmer_bus::abi::... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/fs/proc.rs | wasmer-os/src/fs/proc.rs | #![allow(dead_code)]
#![allow(unused)]
use std::io::prelude::*;
use std::io::SeekFrom;
use std::io::{self};
use std::path::{Path, PathBuf};
use std::pin::Pin;
use std::result::Result as StdResult;
use std::sync::atomic::AtomicU32;
use std::sync::Arc;
use std::sync::Mutex;
use std::task::Context;
use std::task::Poll;
us... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/lib.rs | atenet/src/lib.rs | pub mod opt;
pub mod server;
pub mod switch;
pub mod session;
pub mod port;
pub mod common;
pub mod udp;
pub mod gateway;
pub mod factory;
pub mod raw; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/session.rs | atenet/src/session.rs | use std::net::SocketAddr;
use std::time::Duration;
use ate::prelude::*;
use ate::comms::*;
use wasmer_deploy_cli::model::PortCommand;
use wasmer_deploy_cli::model::PortResponse;
use wasmer_deploy_cli::model::SwitchHello;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/udp.rs | atenet/src/udp.rs | use std::sync::Arc;
use std::net::IpAddr;
use tokio::net::UdpSocket;
use tokio::sync::mpsc;
use std::net::SocketAddr;
use std::sync::RwLock;
use std::collections::HashMap;
use std::sync::Weak;
use std::io::Read;
use bytes::Bytes;
use ate::crypto::AteHash;
use byteorder::{BigEndian, ReadBytesExt};
#[allow(unused_imports... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/gateway.rs | atenet/src/gateway.rs | use std::sync::Arc;
use std::sync::MutexGuard;
use std::sync::RwLock;
use smoltcp::wire::EthernetAddress;
use smoltcp::wire::EthernetFrame;
use smoltcp::wire::Ipv4Address;
use smoltcp::wire::Ipv4Packet;
use smoltcp::wire::Ipv6Packet;
use smoltcp::wire::EthernetProtocol;
use smoltcp::wire::IpCidr;
use smoltcp::wire::IpA... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/raw.rs | atenet/src/raw.rs | use std::sync::Arc;
use tokio::sync::broadcast;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use wasmer_deploy_cli::model::HardwareAddress;
use super::switch::Switch;
#[derive(Debug)]
pub struct TapSocket
{
switch: Arc<Switch>,
mac: HardwareAddress,
rec... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/port.rs | atenet/src/port.rs | use std::collections::BTreeMap;
#[allow(unused_imports)]
use std::net::IpAddr;
use std::net::Ipv4Addr;
use std::sync::Arc;
use std::time::Duration;
use std::collections::HashMap;
use std::net::SocketAddr;
use std::net::SocketAddrV4;
use std::net::SocketAddrV6;
use smoltcp::iface::NeighborCache;
use smoltcp::iface::Rout... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | true |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/server.rs | atenet/src/server.rs | use std::collections::HashMap;
use std::net::SocketAddr;
use std::sync::Arc;
use std::time::Duration;
use error_chain::bail;
#[allow(unused_imports)]
use tokio::sync::mpsc;
use tokio::io::AsyncRead;
use tokio::io::AsyncWrite;
use async_trait::async_trait;
use ate::comms::HelloMetadata;
use ate::comms::RawStreamRoute;
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/common.rs | atenet/src/common.rs | use std::sync::Arc;
use std::net::IpAddr;
use std::net::Ipv4Addr;
use std::net::Ipv6Addr;
use ate::prelude::*;
use ate::comms::StreamRouter;
use ate::mesh::MeshHashTable;
use smoltcp::wire::IpCidr;
use smoltcp::wire::IpAddress;
use tokio::sync::watch;
#[allow(unused_imports, dead_code)]
use tracing::{info, error, debug... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/factory.rs | atenet/src/factory.rs | use std::sync::Arc;
use std::sync::Weak;
use std::sync::RwLock;
use std::collections::HashMap;
use ate::prelude::*;
use ate_files::repo::Repository;
use smoltcp::wire::IpAddress;
use wasmer_deploy_cli::model::ServiceInstance;
use wasmer_deploy_cli::model::INSTANCE_ROOT_ID;
#[allow(unused_imports)]
use tracing::{debug, ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/switch.rs | atenet/src/switch.rs | #![allow(unreachable_code)]
use std::collections::HashMap;
use std::collections::HashSet;
use std::sync::Arc;
use std::sync::Weak;
use std::ops::*;
use std::sync::MutexGuard;
use std::time::Duration;
use ate_files::prelude::FileAccessor;
use bytes::Bytes;
use smoltcp::phy::ChecksumCapabilities;
use smoltcp::wire::DhcpM... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | true |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/opt/network_server.rs | atenet/src/opt/network_server.rs | #[allow(unused_imports, dead_code)]
use tracing::{info, error, debug};
use ate::{prelude::*};
use clap::Parser;
/// Runs the networkserver
#[derive(Parser)]
pub struct OptsNetworkServer {
/// IP address that the network server will listen on
#[clap(short, long, default_value = "::")]
pub listen: IpAddr,
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/opt/core.rs | atenet/src/opt/core.rs | #[allow(unused_imports, dead_code)]
use tracing::{info, error, debug};
use ate::prelude::*;
use clap::Parser;
use super::*;
#[derive(Parser)]
#[clap(version = "1.0", author = "Wasmer Inc <info@wasmer.io>")]
pub struct Opts {
/// Sets the level of log verbosity, can be used multiple times
#[allow(dead_code)]
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/opt/mod.rs | atenet/src/opt/mod.rs | mod core;
mod network_server;
pub use self::core::*;
pub use network_server::*; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/src/bin/atenet.rs | atenet/src/bin/atenet.rs | #![recursion_limit="256"]
#![allow(unused_imports)]
use ate::mesh::MeshHashTable;
use ate::utils::load_node_list;
use atenet::common::setup_server;
use atenet::server::Server;
use tokio::sync::watch;
#[allow(unused_imports, dead_code)]
use tracing::{info, error, debug, trace, warn};
use ate::prelude::*;
use std::sync::... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/tests/ping.rs | atenet/tests/ping.rs | #![allow(unused_variables)]
use std::net::IpAddr;
use std::net::Ipv4Addr;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use serial_test::serial;
use std::time::Instant;
use std::convert::TryInto;
use byteorder::WriteBytesExt;
use byteorder::LittleEndian;
mod common;
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/tests/udp.rs | atenet/tests/udp.rs | #![allow(unused_variables)]
use std::net::SocketAddr;
use std::net::SocketAddrV4;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use serial_test::serial;
mod common;
#[test]
#[serial]
fn udp_simple_static() {
run_udp(false, false);
}
#[test]
#[serial]
fn udp_mes... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/tests/tcp.rs | atenet/tests/tcp.rs | #![allow(unused_variables)]
use std::net::SocketAddr;
use std::net::SocketAddrV4;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use serial_test::serial;
mod common;
#[test]
#[serial]
fn tcp_simple_static() {
run_tcp(false, false);
}
#[test]
#[serial]
fn tcp_mes... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/tests/common/setup.rs | atenet/tests/common/setup.rs | use std::sync::Arc;
use std::net::IpAddr;
use std::net::Ipv4Addr;
use std::future::Future;
use ate::prelude::*;
use atenet::opt::OptsNetworkServer;
use tokio::runtime::Builder;
use wasmer_bus_mio::prelude::Port;
use wasmer_bus_mio::prelude::TokenSource;
use wasmer_bus_mio::prelude::NetworkToken;
use wasmer_bus_mio::pre... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/atenet/tests/common/mod.rs | atenet/tests/common/mod.rs | mod setup;
pub use setup::*; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/build.rs | wasmer-os-grammar/build.rs | extern crate lalrpop;
fn main() {
lalrpop::process_root().unwrap();
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/lib.rs | wasmer-os-grammar/src/lib.rs | #[allow(unused_imports)]
#[macro_use]
extern crate lalrpop_util;
lalrpop_mod!(
#[allow(clippy::all)]
grammar
);
pub mod ast;
pub use grammar::*;
pub use lalrpop_util::*;
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/ast/complete_commands.rs | wasmer-os-grammar/src/ast/complete_commands.rs | use super::*;
#[derive(Debug, PartialEq)]
pub struct CompleteCommands<'a> {
pub complete_commands: Vec<CompleteCommand<'a>>,
}
impl<'a> CompleteCommands<'a> {
pub fn push(
mut self: CompleteCommands<'a>,
element: CompleteCommand<'a>,
) -> CompleteCommands<'a> {
self.complete_comman... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/ast/command.rs | wasmer-os-grammar/src/ast/command.rs | use super::*;
#[derive(Debug, PartialEq)]
pub enum Command<'a> {
Simple {
assign: Vec<&'a str>,
cmd: Arg<'a>,
args: Vec<Arg<'a>>,
redirect: Vec<Redirect>,
},
}
impl<'a> Command<'a> {
pub fn redirect(&mut self) -> &mut Vec<Redirect> {
match self {
Command... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/ast/program.rs | wasmer-os-grammar/src/ast/program.rs | use super::*;
#[derive(Debug, PartialEq)]
pub struct Program<'a> {
pub commands: CompleteCommands<'a>,
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/ast/redirect.rs | wasmer-os-grammar/src/ast/redirect.rs | use std::str::FromStr;
#[derive(Debug, Clone, PartialEq)]
pub struct Redirect {
pub fd: i32,
pub filename: String,
pub op: RedirectionType,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub enum RedirectionType {
TO, // fd > fname
CLOBBER, // fd >| fname
FROM, // fd <... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/ast/term_op.rs | wasmer-os-grammar/src/ast/term_op.rs | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub enum TermOp {
Semi,
Amp,
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/ast/arg.rs | wasmer-os-grammar/src/ast/arg.rs | #[derive(Debug, PartialEq)]
pub enum Arg<'a> {
Arg(&'a str),
Backquote(Vec<Arg<'a>>),
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/ast/mod.rs | wasmer-os-grammar/src/ast/mod.rs | mod and_or;
mod arg;
mod command;
mod complete_command;
mod complete_commands;
mod pipeline;
mod program;
mod redirect;
mod term_op;
pub use and_or::*;
pub use arg::*;
pub use command::*;
pub use complete_command::*;
pub use complete_commands::*;
pub use pipeline::*;
pub use program::*;
pub use redirect::*;
pub use te... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/ast/pipeline.rs | wasmer-os-grammar/src/ast/pipeline.rs | use super::*;
#[derive(Debug, PartialEq)]
pub struct Pipeline<'a> {
pub commands: Vec<Command<'a>>,
pub negated: bool,
}
impl<'a> Pipeline<'a> {
pub fn new(cmd: Command<'a>) -> Pipeline<'a> {
Pipeline {
commands: vec![cmd],
negated: false,
}
}
pub fn negate... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/ast/and_or.rs | wasmer-os-grammar/src/ast/and_or.rs | use super::*;
#[derive(Debug, PartialEq)]
pub struct AndOr<'a> {
pub pipelines: Vec<(AndOrOp, Pipeline<'a>)>,
}
impl<'a> AndOr<'a> {
pub fn push(mut self, op: AndOrOp, element: Pipeline<'a>) -> AndOr<'a> {
if let Some((_, e)) = self.pipelines.pop() {
self.pipelines.push((op, e));
}... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os-grammar/src/ast/complete_command.rs | wasmer-os-grammar/src/ast/complete_command.rs | use super::*;
#[derive(Debug, PartialEq)]
pub struct CompleteCommand<'a> {
pub and_ors: Vec<(TermOp, AndOr<'a>)>,
}
impl<'a> CompleteCommand<'a> {
pub fn push(mut self, op: TermOp, element: AndOr<'a>) -> CompleteCommand<'a> {
// update the TermOp of the previous list entry
self.update_last(op)... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/examples/tcp-client/src/main.rs | examples/tcp-client/src/main.rs | use std::net::TcpStream;
fn main() {
match TcpStream::connect("8.8.8.8:53") {
Ok(_stream) => {
println!("Successfully connected to server in port 53");
},
Err(e) => {
println!("Failed to connect: {}", e);
}
}
println!("Finished.");
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/examples/crypto-bus/src/main.rs | examples/crypto-bus/src/main.rs | fn main() {
println!("Finished.");
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.