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-bus/hello/examples/hi.rs
wasmer-bus/hello/examples/hi.rs
use std::sync::Arc; use async_trait::async_trait; use wasmer_bus_hello::*; #[derive(Debug, Default)] struct HelloService { } #[async_trait] impl WorldSimplified for HelloService { async fn hello(&self) -> String { "hello".to_string() } } #[tokio::main(flavor = "multi_thread")] async fn main() { W...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/prelude.rs
wasmer-bus/reqwest/src/prelude.rs
pub use crate::api::Response; pub use crate::reqwest::header; pub use crate::reqwest::http; pub use crate::reqwest::Body; pub use crate::reqwest::Client; pub use crate::reqwest::ClientBuilder; pub use crate::reqwest::Form; pub use crate::reqwest::Mime; pub use crate::reqwest::RequestBuilder; pub use wasmer_bus; pub use...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/lib.rs
wasmer-bus/reqwest/src/lib.rs
pub mod api; pub mod prelude; pub mod reqwest;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/reqwest/response.rs
wasmer-bus/reqwest/src/reqwest/response.rs
use http::header::HeaderName; use http::HeaderMap; use http::HeaderValue; use http::StatusCode; use serde::de::DeserializeOwned; use serde::*; use std::io::Error; use std::io::ErrorKind; use std::io::Read; use crate::api::*; impl Response { pub fn json<T: DeserializeOwned>(&self) -> Result<T, Error> { mat...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/reqwest/multipart.rs
wasmer-bus/reqwest/src/reqwest/multipart.rs
use std::borrow::Cow; use urlencoding::encode; pub struct Form { parts: Vec<(String, String)>, } impl Default for Form { fn default() -> Self { Self::new() } } impl Form { /// Creates a new Form without any content. pub fn new() -> Form { Form { parts: Vec::new() } } pub ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/reqwest/into_url.rs
wasmer-bus/reqwest/src/reqwest/into_url.rs
use url::Url; /// A trait to try to convert some type into a `Url`. /// /// This trait is "sealed", such that only types within reqwest can /// implement it. pub trait IntoUrl: IntoUrlSealed {} impl IntoUrl for Url {} impl IntoUrl for String {} impl<'a> IntoUrl for &'a str {} impl<'a> IntoUrl for &'a String {} pub t...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/reqwest/client.rs
wasmer-bus/reqwest/src/reqwest/client.rs
#![allow(dead_code)] use std::collections::HashMap; use crate::api::ReqwestOptions; use super::*; pub struct Client { pub(crate) builder: ClientBuilder, } impl Client { pub fn get<U: IntoUrl>(self, url: U) -> RequestBuilder { self.request(http::Method::GET, url) } pub fn post<U: IntoUrl>(se...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/reqwest/error.rs
wasmer-bus/reqwest/src/reqwest/error.rs
pub type Error = std::io::Error; pub type ErrorKind = std::io::ErrorKind;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/reqwest/client_builder.rs
wasmer-bus/reqwest/src/reqwest/client_builder.rs
#![allow(dead_code)] use super::*; #[derive(Debug, Default)] pub struct ClientBuilder { pub(super) gzip: bool, pub(super) cors_proxy: Option<String>, } impl ClientBuilder { pub fn new() -> Self { ClientBuilder::default() } pub fn gzip(mut self, enable: bool) -> Self { self.gzip = ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/reqwest/mod.rs
wasmer-bus/reqwest/src/reqwest/mod.rs
#![allow(unused_imports)] mod body; mod client; mod client_builder; mod error; mod into_url; mod mime; mod multipart; mod request_builder; mod response; pub(crate) use body::*; pub(crate) use client::*; pub(crate) use client_builder::*; pub(crate) use error::*; pub(crate) use into_url::*; pub(crate) use mime::*; pub(c...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/reqwest/request_builder.rs
wasmer-bus/reqwest/src/reqwest/request_builder.rs
#![allow(dead_code)] use http::StatusCode; use std::borrow::Cow; use std::collections::HashMap; use std::io::Write; use super::*; use crate::api::ReqwestClient; use crate::api::Response; use wasmer_bus::abi::call_new; pub struct RequestBuilder { pub(crate) method: http::Method, pub(crate) url: url::Url, p...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/reqwest/mime.rs
wasmer-bus/reqwest/src/reqwest/mime.rs
pub use mime_guess::*;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/reqwest/body.rs
wasmer-bus/reqwest/src/reqwest/body.rs
#![allow(dead_code)] use std::fmt; use std::pin::Pin; use std::task::{Context, Poll}; use bytes::Bytes; use futures_core::Stream; use http_body::Body as HttpBody; use pin_project_lite::pin_project; use super::*; /// An asynchronous request body. pub struct Body { inner: Inner, } // The `Stream` trait isn't stab...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/reqwest/src/api/mod.rs
wasmer-bus/reqwest/src/api/mod.rs
use serde::*; use wasmer_bus::macros::*; #[derive(Debug, Clone, Default, Serialize, Deserialize)] pub struct ReqwestOptions { pub gzip: bool, pub cors_proxy: Option<String>, } #[wasmer_bus(format = "bincode")] pub trait Reqwest { async fn make( &self, url: String, method: String, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/deploy/src/prelude.rs
wasmer-bus/deploy/src/prelude.rs
pub use wasmer_bus; pub use wasmer_bus::abi::BusError; pub use async_trait::async_trait;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/deploy/src/lib.rs
wasmer-bus/deploy/src/lib.rs
pub mod api; pub mod prelude;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/deploy/src/api/mod.rs
wasmer-bus/deploy/src/api/mod.rs
use serde::*; use std::sync::Arc; #[allow(unused_imports)] use wasmer_bus::macros::*; #[wasmer_bus(format = "json")] pub trait Tok { async fn user_exists( &self, email: String, ) -> TokResult<bool>; async fn user_create( &self, email: String, password: String ) ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/time/src/prelude.rs
wasmer-bus/time/src/prelude.rs
pub use crate::time::sleep; pub use crate::time::timeout; pub use crate::time::Elapsed; pub use wasmer_bus; pub use wasmer_bus::abi::BusError; pub use async_trait::async_trait;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/time/src/lib.rs
wasmer-bus/time/src/lib.rs
pub mod api; pub mod prelude; pub mod time;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/time/src/time/timeout.rs
wasmer-bus/time/src/time/timeout.rs
use std::fmt::Display; use std::future::Future; use std::time::Duration; use tokio::select; use super::*; #[derive(Debug)] pub struct Elapsed { duration: Duration, } impl Display for Elapsed { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "timeout elasped (limit={}ms)...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/time/src/time/sleep.rs
wasmer-bus/time/src/time/sleep.rs
#[cfg(target_os = "wasi")] pub async fn sleep(duration: std::time::Duration) { let duration_ms = duration.as_millis(); let _ = crate::api::TimeClient::new(super::WAPM_NAME) .sleep(duration_ms) .await; } #[cfg(not(target_os = "wasi"))] pub use tokio::time::sleep;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/time/src/time/mod.rs
wasmer-bus/time/src/time/mod.rs
mod sleep; mod timeout; pub use sleep::*; pub use timeout::*; #[allow(dead_code)] const WAPM_NAME: &'static str = "os";
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/time/src/api/mod.rs
wasmer-bus/time/src/api/mod.rs
use wasmer_bus::macros::*; #[wasmer_bus(format = "json")] pub trait Time { async fn sleep(&self, duration_ms: u128); }
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/types/src/lib.rs
wasmer-bus/types/src/lib.rs
mod error; mod format; pub use error::*; pub use format::*;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/types/src/error.rs
wasmer-bus/types/src/error.rs
use serde::*; use std::fmt; use std::io; #[repr(u32)] #[derive(Debug, Clone, Copy, Serialize, Deserialize)] pub enum BusError { Success = 0, SerializationFailed = 1, DeserializationFailed = 2, InvalidWapm = 3, FetchFailed = 4, CompileError = 5, IncorrectAbi = 6, Aborted = 7, Invalid...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/types/src/format.rs
wasmer-bus/types/src/format.rs
use serde::*; use std::{fmt::Display, str::FromStr}; #[cfg(feature = "enable_num_enum")] use num_enum::IntoPrimitive; #[cfg(feature = "enable_num_enum")] use num_enum::TryFromPrimitive; use crate::BusError; #[derive( Serialize, Deserialize, Debug, Clone, Copy, Eq, PartialEq, PartialOrd...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/prelude.rs
wasmer-bus/ws/src/prelude.rs
#[cfg(any(feature = "sys", target_family = "wasm"))] pub use crate::ws::RecvHalf; #[cfg(any(feature = "sys", target_family = "wasm"))] pub use crate::ws::SendHalf; #[cfg(any(feature = "sys", target_family = "wasm"))] pub use crate::ws::SocketBuilder; #[cfg(any(feature = "sys", target_family = "wasm"))] pub use crate::w...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/lib.rs
wasmer-bus/ws/src/lib.rs
pub mod api; pub mod prelude; pub mod model; pub mod ws;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/model/socket_state.rs
wasmer-bus/ws/src/model/socket_state.rs
use std::fmt::{Display, Formatter, self}; #[allow(dead_code)] #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, serde::Serialize, serde::Deserialize)] pub enum SocketState { Opening, Opened, Closed, Failed, } impl Display for SocketState { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Re...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/model/mod.rs
wasmer-bus/ws/src/model/mod.rs
mod socket_state; mod send_result; pub use socket_state::*; pub use send_result::*;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/model/send_result.rs
wasmer-bus/ws/src/model/send_result.rs
use serde::*; #[allow(dead_code)] #[derive(Debug, Clone, Serialize, Deserialize)] pub enum SendResult { Success(usize), Failed(String), }
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/api/mod.rs
wasmer-bus/ws/src/api/mod.rs
use std::sync::Arc; use wasmer_bus::macros::*; use crate::model::SendResult; use crate::model::SocketState; #[wasmer_bus(format = "bincode")] pub trait SocketBuilder { async fn connect( &self, url: String, state_change: impl Fn(SocketState), receive: impl Fn(Vec<u8>), ) -> Arc<...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/ws/mod.rs
wasmer-bus/ws/src/ws/mod.rs
#[cfg(target_family = "wasm")] mod wasm; #[cfg(feature = "sys")] #[cfg(not(target_family = "wasm"))] mod sys; #[cfg(target_family = "wasm")] pub use wasm::*; #[cfg(feature = "sys")] #[cfg(not(target_family = "wasm"))] pub use sys::*;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/ws/wasm/socket_builder.rs
wasmer-bus/ws/src/ws/wasm/socket_builder.rs
#![allow(dead_code)] use std::io::Write; use std::result::Result; use tokio::sync::mpsc; use tokio::sync::watch; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use super::*; use crate::api; use crate::model::SocketState; use wasmer_bus::abi::*; const MAX_MPSC: usize = std::usize::...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/ws/wasm/mod.rs
wasmer-bus/ws/src/ws/wasm/mod.rs
#![allow(unused_imports)] mod socket_builder; mod web_socket; pub(crate) use socket_builder::*; pub(crate) use web_socket::*; pub use socket_builder::SocketBuilder; pub use web_socket::RecvHalf; pub use web_socket::SendHalf; pub use web_socket::WebSocket; pub const WAPM_NAME: &'static str = "os";
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/ws/wasm/web_socket.rs
wasmer-bus/ws/src/ws/wasm/web_socket.rs
use std::collections::VecDeque; use std::io; use std::ops::DerefMut; use std::pin::Pin; use std::sync::Arc; use std::sync::Mutex; use std::task::Context; use std::task::Poll; use std::future::Future; use std::io::Read; use std::io::Write; use bytes::Bytes; use derivative::*; use tokio::io::AsyncWrite; use tokio::io::As...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/ws/sys/socket_builder.rs
wasmer-bus/ws/src/ws/sys/socket_builder.rs
use std::result::Result; use tokio::net::TcpStream; use tokio_tungstenite::MaybeTlsStream; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use super::*; pub struct SocketBuilder { pub(crate) url: url::Url, } impl SocketBuilder { pub fn new(url: url::Url) -> SocketBuilder {...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/ws/sys/mod.rs
wasmer-bus/ws/src/ws/sys/mod.rs
#![allow(unused_imports)] mod socket_builder; mod web_socket; pub(crate) use socket_builder::*; pub(crate) use web_socket::*; pub use socket_builder::SocketBuilder; pub use web_socket::RecvHalf; pub use web_socket::SendHalf; pub use web_socket::WebSocket;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/ws/src/ws/sys/web_socket.rs
wasmer-bus/ws/src/ws/sys/web_socket.rs
use std::io; use std::pin::Pin; use std::sync::Arc; use std::task::Context; use std::task::Poll; use bytes::Bytes; use async_trait::async_trait; use futures::stream::SplitSink; use futures::stream::SplitStream; use futures::SinkExt; use futures_util::StreamExt; use tokio::sync::Mutex; use tokio::net::TcpStream; use tok...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/webgl/src/prelude.rs
wasmer-bus/webgl/src/prelude.rs
pub use wasmer_bus; pub use wasmer_bus::abi::BusError; pub use super::api; pub use super::api::glenum; pub use super::error::WebGlError; pub use super::webgl::*; pub use async_trait::async_trait;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/webgl/src/lib.rs
wasmer-bus/webgl/src/lib.rs
pub mod api; pub mod prelude; pub mod webgl; pub mod error;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/webgl/src/webgl.rs
wasmer-bus/webgl/src/webgl.rs
use std::sync::Arc; pub use wasmer_bus::prelude::BusError; pub use super::api::glenum::*; use super::api; use super::error::WebGlError; #[derive(Debug, Clone)] pub struct WebGl { raster: Arc<dyn api::Raster>, ctx: Arc<dyn api::RenderingContext>, } impl WebGl { pub fn new() -> Result<WebGl, WebGlError> {...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/webgl/src/error.rs
wasmer-bus/webgl/src/error.rs
use std::fmt; #[derive(Debug)] pub enum WebGlError { IO(std::io::Error), CompileError(String), LinkError(String), } impl fmt::Display for WebGlError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { WebGlError::IO(err) => { fmt::Display::fmt(...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/webgl/src/api/mod.rs
wasmer-bus/webgl/src/api/mod.rs
use std::sync::Arc; #[allow(unused_imports)] use wasmer_bus::macros::*; pub mod glenum; pub use glenum::*; #[wasmer_bus(format = "bincode")] pub trait WebGl { async fn context(&self) -> Arc<dyn RenderingContext>; } #[wasmer_bus(format = "bincode")] pub trait RenderingContext { async fn raster(&self) -> Arc<d...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/webgl/src/api/glenum.rs
wasmer-bus/webgl/src/api/glenum.rs
use serde::*; /// Constants passed to WebGLRenderingContext.vertexAttribPointer() #[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)] pub enum AttributeSize { One = 1, Two = 2, Three = 3, Four = 4, } /// Constants passed to WebGLRenderingContext.createShader() #[deriv...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/webgl/examples/triangle.rs
wasmer-bus/webgl/examples/triangle.rs
use wasmer_bus_webgl::prelude::*; fn main() -> Result<(), WebGlError> { let context = WebGl::new()?; let program = context .create_program(); let vert_shader = compile_shader( &program, ShaderKind::Vertex, r##"#version 300 es in vec4 position; void main(...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/prelude.rs
wasmer-bus/lib/src/prelude.rs
pub use crate::abi::call; pub use crate::abi::call_new; pub use crate::abi::subcall; pub use crate::abi::Call; #[cfg(feature = "rt")] pub use crate::task::listen; #[cfg(feature = "rt")] pub use crate::task::respond_to; #[cfg(feature = "macros")] pub use wasmer_bus_macros::*; pub use crate::abi::BusError; pub use crat...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/lib.rs
wasmer-bus/lib/src/lib.rs
pub mod abi; pub mod engine; pub mod prelude; pub mod task; pub use async_trait::async_trait; #[cfg(feature = "macros")] pub mod macros { pub use wasmer_bus_macros::*; pub use async_trait::async_trait; }
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/unsupported.rs
wasmer-bus/lib/src/abi/unsupported.rs
#![allow(unused_variables)] use std::time::Duration; use super::*; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; #[allow(dead_code)] pub fn bus_poll_once(timeout: Duration) -> usize { panic!("unsupported on this platform"); } pub fn bus_open_local( name: &str, resuse...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/respond_to.rs
wasmer-bus/lib/src/abi/respond_to.rs
use derivative::*; use std::collections::HashMap; use std::future::Future; use std::pin::Pin; use std::sync::Arc; use std::sync::Mutex; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use wasmer_bus_types::SerializationFormat; use crate::abi::BusError; use crate::abi::CallHandle; p...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/reply.rs
wasmer-bus/lib/src/abi/reply.rs
use serde::*; use std::marker::PhantomData; use std::ops::{Deref, DerefMut}; use super::*; #[derive(Debug)] #[must_use = "you must reply to the caller by invoking 'reply'"] pub struct Reply<RES, REQ> where REQ: de::DeserializeOwned, RES: Serialize, { scope: CallSmartHandle, format: SerializationFormat...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/call.rs
wasmer-bus/lib/src/abi/call.rs
use derivative::*; use serde::*; use std::borrow::Cow; use std::collections::HashMap; use std::future::Future; use std::marker::PhantomData; use std::ops::*; use std::pin::Pin; use std::sync::Arc; use std::sync::Mutex; use std::task::{ Context, Poll }; #[allow(unused_imports, dead_code)] use tracing::{debug, er...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/session.rs
wasmer-bus/lib/src/abi/session.rs
use super::CallHandle; #[derive(Debug, Clone)] #[must_use = "the session must be consumed to tell the server when it needs to free resources"] pub struct WasmBusSession { handle: CallHandle, } impl WasmBusSession { pub fn new(handle: CallHandle) -> WasmBusSession { WasmBusSession { handle } } ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/mod.rs
wasmer-bus/lib/src/abi/mod.rs
mod call; mod data; mod finish; mod handle; mod listen; mod reply; mod respond_to; mod session; #[cfg(target_os = "wasi")] pub(crate) mod syscall; #[cfg(not(target_os = "wasi"))] pub(crate) mod unsupported; #[cfg(not(target_os = "wasi"))] pub(crate) use unsupported as syscall; use std::any::type_name; use std::borrow...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/listen.rs
wasmer-bus/lib/src/abi/listen.rs
use derivative::*; use std::future::Future; use std::pin::Pin; use std::sync::Arc; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use wasmer_bus_types::SerializationFormat; use crate::abi::BusError; use super::CallHandle; pub enum ListenAction { Response(Vec<u8>), Fault(Bu...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/data.rs
wasmer-bus/lib/src/abi/data.rs
use super::BusError; #[repr(C)] #[derive(Debug)] #[must_use = "this `Data` may be an `Error` variant, which should be handled"] pub enum Data { Prepared(Vec<u8>), Error(BusError), }
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/finish.rs
wasmer-bus/lib/src/abi/finish.rs
use derivative::*; use std::sync::Arc; use std::sync::Mutex; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use super::*; pub trait FinishOps where Self: Send + Sync, { fn process(&self, data: Vec<u8>, format: SerializationFormat) -> Result<Vec<u8>, BusError>; fn topi...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/syscall.rs
wasmer-bus/lib/src/abi/syscall.rs
use super::*; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; fn convert_format(a: wasi::BusDataFormat) -> SerializationFormat { use SerializationFormat::*; match a { wasi::BUS_DATA_FORMAT_BINCODE => Bincode, wasi::BUS_DATA_FORMAT_MESSAGE_PACK => MessagePack...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/abi/handle.rs
wasmer-bus/lib/src/abi/handle.rs
use serde::*; use std::fmt; #[repr(C)] #[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct CallHandle { pub id: u64, } impl From<u64> for CallHandle { fn from(val: u64) -> CallHandle { CallHandle { id: val } } } impl Into<u64> for CallHandle { ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/task/helper.rs
wasmer-bus/lib/src/task/helper.rs
use cooked_waker::ViaRawPointer; use cooked_waker::Wake; use cooked_waker::WakeRef; use cooked_waker::IntoWaker; use serde::*; use std::any::type_name; use std::future::Future; use std::pin::Pin; use std::task::Context; use std::task::Poll; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, wa...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/task/mod.rs
wasmer-bus/lib/src/task/mod.rs
mod helper; pub use helper::*;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/engine/engine.rs
wasmer-bus/lib/src/engine/engine.rs
#![allow(dead_code)] use once_cell::sync::Lazy; #[allow(unused_imports, dead_code)] use std::any::type_name; use std::borrow::Cow; use std::convert::TryInto; #[allow(unused_imports)] use std::future::Future; use std::sync::RwLock; use std::sync::RwLockReadGuard; use std::sync::RwLockWriteGuard; use std::sync::{Arc, Mut...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/lib/src/engine/mod.rs
wasmer-bus/lib/src/engine/mod.rs
mod engine; pub(crate) use engine::*;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/tty/src/prelude.rs
wasmer-bus/tty/src/prelude.rs
#[cfg(any(feature = "sys", target_family = "wasm"))] pub use crate::tty::Tty; #[cfg(target_family = "wasm")] pub use wasmer_bus; #[cfg(target_family = "wasm")] pub use wasmer_bus::abi::BusError; pub use async_trait::async_trait;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/tty/src/lib.rs
wasmer-bus/tty/src/lib.rs
pub mod api; pub mod prelude; pub mod tty;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/tty/src/api.rs
wasmer-bus/tty/src/api.rs
use serde::*; use std::sync::Arc; use wasmer_bus::macros::*; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct TtyRect { pub cols: u32, pub rows: u32, } #[wasmer_bus(format = "bincode")] pub trait Tty { async fn stdin( &self, recv: impl Fn(Vec<u8>), flush: impl Fn(()), ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/tty/src/tty/mod.rs
wasmer-bus/tty/src/tty/mod.rs
#[cfg(feature = "sys")] #[cfg(not(target_family = "wasm"))] mod sys; #[cfg(target_family = "wasm")] mod wasm; #[cfg(feature = "sys")] #[cfg(not(target_family = "wasm"))] pub use sys::*; #[cfg(target_family = "wasm")] pub use wasm::*;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/tty/src/tty/wasm.rs
wasmer-bus/tty/src/tty/wasm.rs
#![allow(dead_code)] use crate::api; use std::io; use std::{result::Result, sync::Arc}; use tokio::sync::mpsc; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; pub const WAPM_NAME: &'static str = "os"; const MAX_MPSC: usize = std::usize::MAX >> 3; pub struct Tty { client: api::T...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/tty/src/tty/sys.rs
wasmer-bus/tty/src/tty/sys.rs
#![allow(dead_code)] use libc::{tcsetattr, termios, winsize, ECHO, ICANON, ICRNL, IEXTEN, ISIG, IXON, OPOST, TCSANOW, TIOCGWINSZ}; use std::os::unix::io::AsRawFd; use std::result::Result; use tokio::{io, io::AsyncReadExt, io::AsyncWriteExt}; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, w...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/tty/examples/passthru.rs
wasmer-bus/tty/examples/passthru.rs
use wasmer_bus_tty::prelude::*; #[cfg(target_family = "wasm")] fn main() -> Result<(), Box<dyn std::error::Error>> { wasmer_bus::task::block_on(main_async()) } #[cfg(not(target_family = "wasm"))] #[tokio::main(flavor = "multi_thread")] async fn main() -> Result<(), Box<dyn std::error::Error>> { main_async().a...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/fuse/src/prelude.rs
wasmer-bus/fuse/src/prelude.rs
pub use crate::fuse::Dir; pub use crate::fuse::FileSystem; pub use crate::fuse::FsError; pub use crate::fuse::FsResult; pub use crate::fuse::Metadata; pub use crate::fuse::OpenOptions; pub use crate::fuse::OpenOptionsConfig; pub use crate::fuse::VirtualFile; pub use async_trait::async_trait; pub use wasmer_bus; pub use...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/fuse/src/lib.rs
wasmer-bus/fuse/src/lib.rs
pub mod api; pub mod fuse; pub mod prelude;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/fuse/src/api/mod.rs
wasmer-bus/fuse/src/api/mod.rs
use serde::*; use std::io; use std::sync::Arc; #[allow(unused_imports)] use wasmer_bus::macros::*; #[wasmer_bus(format = "json")] pub trait Fuse { async fn mount(&self, name: String) -> Arc<dyn FileSystem>; } #[wasmer_bus(format = "json")] pub trait FileSystem { async fn init(&self) -> FsResult<()>; async...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
true
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/fuse/src/fuse/mod.rs
wasmer-bus/fuse/src/fuse/mod.rs
#![allow(dead_code)] use std::io; use std::path::Path; use std::sync::Arc; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use crate::api; pub use crate::api::Dir; pub use crate::api::FsError; pub use crate::api::FsResult; pub use crate::api::Metadata; #[derive(Clone)] pub struct ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-bus/fuse/examples/find.rs
wasmer-bus/fuse/examples/find.rs
use std::{collections::VecDeque, path::Path}; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use tracing_subscriber::fmt::SubscriberBuilder; use wasmer_bus_fuse::prelude::*; //use tracing_subscriber::EnvFilter; use tracing::metadata::LevelFilter; #[tokio::main(flavor = "multi_threa...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/prelude.rs
files/src/prelude.rs
pub use crate::error::FileSystemError; pub use crate::error::FileSystemErrorKind; pub use crate::api::FileApi; pub use crate::api::FileKind; pub use crate::api::FileSpec; pub use crate::attr::FileAttr; pub use crate::attr::SetAttr; pub use crate::accessor::FileAccessor; pub use crate::accessor::RequestContext; pub us...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/attr.rs
files/src/attr.rs
use super::prelude::*; #[derive(Debug, Clone)] pub struct FileAttr { pub ino: u64, pub size: u64, pub blksize: u32, pub accessed: u64, pub updated: u64, pub created: u64, pub kind: FileKind, pub mode: u32, pub uid: u32, pub gid: u32, } impl FileAttr { pub fn new(spec: &File...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/lib.rs
files/src/lib.rs
pub mod accessor; pub mod api; pub mod attr; pub mod codes; pub mod dir; pub mod error; pub mod file; pub mod fixed; pub mod handle; pub mod model; pub mod prelude; pub mod symlink; pub mod repo;
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/fixed.rs
files/src/fixed.rs
#![allow(unused_imports)] use super::api::FileKind; use super::model::*; use crate::api::FileApi; use async_trait::async_trait; use ate::prelude::PrimaryKey; use serde::*; #[derive(Debug, Clone)] pub struct FixedFile { ino: u64, #[allow(dead_code)] kind: FileKind, uid: u32, gid: u32, size: u64,...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/symlink.rs
files/src/symlink.rs
use super::api::FileKind; use super::model::*; use crate::api::FileApi; use async_trait::async_trait; use ate::prelude::*; #[derive(Debug)] pub struct SymLink { pub ino: u64, pub created: u64, pub updated: u64, pub uid: u32, pub gid: u32, pub mode: u32, pub name: String, pub link: Optio...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/repo.rs
files/src/repo.rs
use async_trait::async_trait; use ate::prelude::*; use wasmer_auth::error::GatherError; use bytes::Bytes; use derivative::*; use std::sync::Arc; use std::sync::RwLock; use std::time::Duration; use tokio::sync::Mutex; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, instrument, span, trace, warn, Le...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/accessor.rs
files/src/accessor.rs
use error_chain::bail; #[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use bytes::Bytes; use std::sync::Arc; use std::sync::Mutex; use tokio::sync::Mutex as AsyncMutex; use crate::fixed::FixedFile; use ::ate::chain::*; use ::ate::crypto::*; use ::ate::dio::Dao; use ::...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
true
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/codes.rs
files/src/codes.rs
pub const EXIT_FAILURE: i32 = 1; pub const EXIT_SUCCESS: i32 = 0; pub const RAND_MAX: i32 = 2147483647; pub const EOF: i32 = -1; pub const SEEK_SET: i32 = 0; pub const SEEK_CUR: i32 = 1; pub const SEEK_END: i32 = 2; pub const EDEADLK: i32 = 35; pub const ENAMETOOLONG: i32 = 36; pub const ENOLCK: i32 = 37; pub const EN...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/error.rs
files/src/error.rs
use ate::error::*; use error_chain::error_chain; error_chain! { types { FileSystemError, FileSystemErrorKind, ResultExt, Result; } links { AteError(::ate::error::AteError, ::ate::error::AteErrorKind); LoginError(::wasmer_auth::error::LoginError, ::wasmer_auth::error::LoginErrorKind)...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/file.rs
files/src/file.rs
#![allow(dead_code)] use super::api::FileKind; use super::model::*; use crate::api::FileApi; use async_trait::async_trait; use ate::prelude::*; use bytes::Bytes; use error_chain::bail; use fxhash::FxHashMap; use seqlock::SeqLock; use std::io::Cursor; use std::ops::Deref; use tokio::sync::Mutex; #[allow(unused_imports)]...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/api.rs
files/src/api.rs
use super::dir::Directory; use super::file::RegularFile; use super::fixed::FixedFile; use super::symlink::SymLink; use async_trait::async_trait; use bytes::Bytes; use enum_dispatch::enum_dispatch; use fxhash::FxHashMap; use serde::*; use crate::error::*; #[enum_dispatch(FileApi)] pub enum FileSpec { //Custom, ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/model.rs
files/src/model.rs
use super::api::*; use super::dir::Directory; use super::file::RegularFile; use super::fixed::FixedFile; use super::symlink::SymLink; use ate::prelude::*; use fxhash::FxHashMap; use serde::*; pub const PAGES_PER_BUNDLE: usize = 1024; pub const PAGE_SIZE: usize = 131072; pub const WEB_CONFIG_ID: u64 = 0xb709d79e5cf6dd6...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/dir.rs
files/src/dir.rs
use super::api::FileKind; use super::model::*; use crate::api::FileApi; use async_trait::async_trait; use error_chain::bail; use fxhash::FxHashMap; use std::ops::Deref; use ate::prelude::*; use crate::error::*; #[derive(Debug)] pub struct Directory { pub state: DirectoryState, pub key: PrimaryKey, pub cr...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/files/src/handle.rs
files/src/handle.rs
#[allow(unused_imports)] use tracing::{debug, error, info, instrument, span, trace, warn, Level}; use derivative::*; use super::api::*; use super::attr::*; #[derive(Derivative)] #[derivative(Debug)] pub struct OpenHandle where Self: Send + Sync, { pub dirty: seqlock::SeqLock<bool>, pub inode: u64, pu...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/build.rs
wasmer-os/build.rs
extern crate build_deps; fn main() { build_deps::rerun_if_changed_paths( "static/bin/*" ).unwrap(); build_deps::rerun_if_changed_paths( "static/dev/*" ).unwrap(); build_deps::rerun_if_changed_paths( "static/etc/*" ).unwrap(); build_deps::rerun_if_changed_paths( "static/tmp/*" ).unwrap(); build_...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/stdout.rs
wasmer-os/src/stdout.rs
#![allow(unused_imports)] #![allow(dead_code)] use std::io::Write; use std::ops::{Deref, DerefMut}; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use super::cconst::*; use super::common::*; use super::fd::*; use super::tty::*; #[derive(Debug, Clone)] pub struct Stdout { pub f...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/tty.rs
wasmer-os/src/tty.rs
#![allow(unused_imports)] #![allow(dead_code)] use core::sync::atomic::AtomicBool; use core::sync::atomic::Ordering; use derivative::*; use std::io::Write; use std::sync::Arc; use std::sync::Mutex; use tokio::sync::Mutex as AsyncMutex; use tokio::sync::RwLock; use tokio::sync::mpsc; #[allow(unused_imports, dead_code)] ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/fd.rs
wasmer-os/src/fd.rs
#![allow(dead_code)] #![allow(unused_imports)] use bytes::{Buf, BytesMut}; use core::sync::atomic::AtomicBool; use core::sync::atomic::Ordering; use std::io::prelude::*; use std::io::SeekFrom; use std::num::NonZeroU32; use std::ops::Deref; use std::sync::atomic::AtomicI32; use std::sync::atomic::AtomicU32; use std::syn...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/lib.rs
wasmer-os/src/lib.rs
pub mod api; pub mod builtins; pub mod bus; pub mod eval; pub mod fs; pub mod bin_factory; pub mod cconst; pub mod common; pub mod console; pub mod environment; pub mod err; pub mod fd; pub mod job; pub mod pipe; pub mod poll; pub mod reactor; pub mod state; pub mod stdio; pub mod stdout; pub mod tty; pub mod wasi; pu...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/wasi.rs
wasmer-os/src/wasi.rs
#![allow(unused, dead_code)] use super::reactor::Reactor; use chrono::prelude::*; use core::sync::atomic::{AtomicUsize, Ordering}; use once_cell::sync::Lazy; use std::collections::HashMap; use std::sync::Arc; use std::sync::Mutex; use std::sync::RwLock as StdRwLock; use tokio::sync::watch; use tokio::sync::RwLock; #[al...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/environment.rs
wasmer-os/src/environment.rs
#![allow(dead_code)] #![allow(unused_variables)] use std::collections::hash_map::Entry; use std::collections::HashMap; use std::env; #[derive(Debug, Clone, Default)] pub struct Val { pub var_eq: Option<String>, pub export: bool, pub readonly: bool, } #[derive(Debug, Clone, Default)] pub struct Environmen...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/stdio.rs
wasmer-os/src/stdio.rs
#![allow(unused_imports)] #![allow(dead_code)] use std::fmt; use std::future::Future; use tokio::io::{self}; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace}; use crate::fs::UnionFileSystem; use super::common::*; use super::fd::*; use super::state::*; use super::tty::*; #[derive(Debug, Cl...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false
wasmerio/ate
https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-os/src/poll.rs
wasmer-os/src/poll.rs
#![allow(unused_imports)] #![allow(dead_code)] use std::sync::Arc; use std::sync::Mutex; use tokio::sync::mpsc; use tokio::sync::Mutex as AsyncMutex; use tokio::sync::RwLock; #[allow(unused_imports, dead_code)] use tracing::{debug, error, info, trace, warn}; use super::err::*; use super::fd::*; use super::pipe::*; 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/state.rs
wasmer-os/src/state.rs
#![allow(unused_imports)] #![allow(dead_code)] use bytes::{Buf, BytesMut}; use std::collections::HashMap; use std::sync::Arc; use std::sync::Mutex; use std::sync::atomic::AtomicBool; use tokio::sync::mpsc; use tokio::sync::oneshot; use tokio::sync::watch; use tokio::sync::Mutex as AsyncMutex; use crate::common::*; 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/wizard_executor.rs
wasmer-os/src/wizard_executor.rs
use std::sync::Arc; use crate::api::ConsoleAbi; use crate::api::WizardAbi; use crate::api::WizardAction; use crate::api::WizardPrompt; pub struct WizardExecutor { wizard: Box<dyn WizardAbi + Send + Sync + 'static>, prompts: Vec<WizardPrompt>, responses: Vec<String>, } pub enum WizardExecutorAction { ...
rust
Apache-2.0
87635b5b49c4163885ce840f4f1c2f30977f40cc
2026-01-04T20:14:33.413949Z
false