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 |
|---|---|---|---|---|---|---|---|---|
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/cookie_store/src/cookie_path.rs | crates/cookie_store/src/cookie_path.rs | use std::cmp::max;
use std::ops::Deref;
use serde_derive::{Deserialize, Serialize};
use url::Url;
/// Returns true if `request_url` path-matches `path` per
/// [IETF RFC6265 Section 5.1.4](https://datatracker.ietf.org/doc/html/rfc6265#section-5.1.4)
pub fn is_match(path: &str, request_url: &Url) -> bool {
CookieP... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_json_tree/src/node.rs | crates/egui_json_tree/src/node.rs | use std::collections::{HashMap, HashSet};
use egui::{
collapsing_header::CollapsingState,
text::LayoutJob,
util::cache::{ComputerMut, FrameCache},
Color32, FontId, Id, Label, Response, Sense, TextFormat, Ui,
};
use crate::{
delimiters::{ARRAY_DELIMITERS, OBJECT_DELIMITERS},
response::JsonTreeR... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_json_tree/src/delimiters.rs | crates/egui_json_tree/src/delimiters.rs | pub struct Delimiters {
pub collapsed: &'static str,
pub collapsed_empty: &'static str,
pub opening: &'static str,
pub closing: &'static str,
}
pub const ARRAY_DELIMITERS: Delimiters = Delimiters {
collapsed: "[...]",
collapsed_empty: "[]",
opening: "[",
closing: "]",
};
pub const OBJE... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_json_tree/src/lib.rs | crates/egui_json_tree/src/lib.rs | //! An interactive JSON tree visualiser for `egui`, with search and highlight functionality.
//!
//! ```
//! use egui::{Color32};
//! use egui_json_tree::{DefaultExpand, JsonTree, JsonTreeStyle};
//!
//! # egui::__run_test_ui(|ui| {
//! let value = serde_json::json!({ "foo": "bar", "fizz": [1, 2, 3]});
//!
//! // Simpl... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_json_tree/src/response.rs | crates/egui_json_tree/src/response.rs | use std::collections::HashSet;
use egui::{collapsing_header::CollapsingState, Id, Ui};
/// The response from showing a [`JsonTree`](crate::JsonTree).
pub struct JsonTreeResponse {
pub(crate) collapsing_state_ids: HashSet<Id>,
}
impl JsonTreeResponse {
/// For the [`JsonTree`](crate::JsonTree) that provided t... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_json_tree/src/value.rs | crates/egui_json_tree/src/value.rs | //! Representation of JSON values for presentation purposes.
//!
//! Write your own [`ToJsonTreeValue`] implementation which converts to [`JsonTreeValue`] if you wish to visualise a custom JSON type with a [`JsonTree`](crate::JsonTree),
//! and disable default features in your `Cargo.toml` if you do not need the [`serd... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_json_tree/src/search.rs | crates/egui_json_tree/src/search.rs | use std::collections::HashSet;
use crate::value::{ExpandableType, JsonTreeValue, ToJsonTreeValue};
#[derive(Debug, Clone, Hash)]
pub struct SearchTerm(String);
impl SearchTerm {
pub fn parse(search_str: &str) -> Option<Self> {
SearchTerm::is_valid(search_str).then_some(Self(search_str.to_ascii_lowercase(... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_json_tree/src/tree.rs | crates/egui_json_tree/src/tree.rs | use crate::{
node::JsonTreeNode, value::ToJsonTreeValue, DefaultExpand, JsonTreeResponse, JsonTreeStyle,
};
use egui::{Id, Response, Ui};
use std::hash::Hash;
type ResponseCallback<'a> = dyn FnMut(Response, &String) + 'a;
#[derive(Default)]
pub struct JsonTreeConfig<'a> {
pub(crate) style: JsonTreeStyle,
... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_json_tree/src/default_expand.rs | crates/egui_json_tree/src/default_expand.rs | #[derive(Default, Debug, Clone)]
/// Configuration for how a [`JsonTree`](crate::JsonTree) should expand arrays and objects by default.
pub enum DefaultExpand<'a> {
/// Expand all arrays and objects.
All,
/// Collapse all arrays and objects.
#[default]
None,
/// Expand arrays and objects accordi... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui_json_tree/src/style.rs | crates/egui_json_tree/src/style.rs | use egui::{Color32, FontId, TextStyle, Ui};
use crate::value::BaseValueType;
/// Contains coloring parameters for JSON syntax highlighting, and search match highlighting.
#[derive(Debug, Clone, Hash)]
pub struct JsonTreeStyle {
pub object_key_color: Color32,
pub array_idx_color: Color32,
pub null_color: C... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/netpurr_test_runner/src/main.rs | crates/netpurr_test_runner/src/main.rs | use std::cell::RefCell;
use std::ops::Deref;
use std::process::exit;
use std::rc::Rc;
use std::sync::{Arc, RwLock};
use std::time::Duration;
use clap::Parser;
use futures_util::future::join_all;
use reqwest::Client;
use netpurr_core::data::collections::{CollectionFolder, CollectionFolderOnlyRead, Testcase};
use netpu... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui-toast/src/lib.rs | crates/egui-toast/src/lib.rs | //! This crate provides a convenient interface for showing toast notifications with
//! the [egui](https://github.com/emilk/egui) library.
//!
//! For a complete example, see <https://github.com/urholaukkarinen/egui-toast/tree/main/demo>.
//!
//! # Usage
//!
//! To get started, create a `Toasts` instance in your render... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui-toast/src/toast.rs | crates/egui-toast/src/toast.rs | use egui::WidgetText;
use std::time::Duration;
#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
pub enum ToastKind {
Info,
Warning,
Error,
Success,
Custom(u32),
}
impl From<u32> for ToastKind {
fn from(value: u32) -> ToastKind {
ToastKind::Custom(value)
}
}
#[de... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui-phosphor/src/lib.rs | crates/egui-phosphor/src/lib.rs | pub mod variants;
pub use variants::*;
pub fn add_to_fonts(fonts: &mut egui::FontDefinitions, variant: Variant) {
fonts
.font_data
.insert("phosphor".into(), variant.font_data());
if let Some(font_keys) = fonts.families.get_mut(&egui::FontFamily::Proportional) {
font_keys.push("phospho... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui-phosphor/src/variants/light.rs | crates/egui-phosphor/src/variants/light.rs | #![allow(unused)]
pub const ADDRESS_BOOK: &str = "\u{E900}";
pub const AIRPLANE_IN_FLIGHT: &str = "\u{E901}";
pub const AIRPLANE_LANDING: &str = "\u{E902}";
pub const AIRPLANE: &str = "\u{E903}";
pub const AIRPLANE_TAKEOFF: &str = "\u{E904}";
pub const AIRPLANE_TILT: &str = "\u{E905}";
pub const AIRPLAY: &str = "\u{E90... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | true |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui-phosphor/src/variants/fill.rs | crates/egui-phosphor/src/variants/fill.rs | #![allow(unused)]
pub const ADDRESS_BOOK: &str = "\u{E900}";
pub const AIRPLANE: &str = "\u{E901}";
pub const AIRPLANE_IN_FLIGHT: &str = "\u{E902}";
pub const AIRPLANE_LANDING: &str = "\u{E903}";
pub const AIRPLANE_TAKEOFF: &str = "\u{E904}";
pub const AIRPLANE_TILT: &str = "\u{E905}";
pub const AIRPLAY: &str = "\u{E90... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | true |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui-phosphor/src/variants/regular.rs | crates/egui-phosphor/src/variants/regular.rs | #![allow(unused)]
pub const ADDRESS_BOOK: &str = "\u{E900}";
pub const AIRPLANE: &str = "\u{E901}";
pub const AIRPLANE_IN_FLIGHT: &str = "\u{E902}";
pub const AIRPLANE_LANDING: &str = "\u{E903}";
pub const AIRPLANE_TAKEOFF: &str = "\u{E904}";
pub const AIRPLANE_TILT: &str = "\u{E905}";
pub const AIRPLAY: &str = "\u{E90... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | true |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui-phosphor/src/variants/bold.rs | crates/egui-phosphor/src/variants/bold.rs | #![allow(unused)]
pub const ADDRESS_BOOK: &str = "\u{E900}";
pub const AIRPLANE: &str = "\u{E901}";
pub const AIRPLANE_IN_FLIGHT: &str = "\u{E902}";
pub const AIRPLANE_LANDING: &str = "\u{E903}";
pub const AIRPLANE_TAKEOFF: &str = "\u{E904}";
pub const AIRPLANE_TILT: &str = "\u{E905}";
pub const AIRPLAY: &str = "\u{E90... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | true |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui-phosphor/src/variants/mod.rs | crates/egui-phosphor/src/variants/mod.rs | #[cfg(feature = "bold")]
pub mod bold;
#[cfg(feature = "fill")]
pub mod fill;
#[cfg(feature = "light")]
pub mod light;
#[cfg(feature = "regular")]
pub mod regular;
#[cfg(feature = "thin")]
pub mod thin;
#[cfg(not(any(
feature = "thin",
feature = "light",
feature = "regular",
feature = "bold",
featu... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | false |
tmtbe/netpurr | https://github.com/tmtbe/netpurr/blob/922e0e29e2a4685249fafe7eba87bb4fffe7d72e/crates/egui-phosphor/src/variants/thin.rs | crates/egui-phosphor/src/variants/thin.rs | #![allow(unused)]
pub const ADDRESS_BOOK: &str = "\u{E900}";
pub const AIRPLANE_IN_FLIGHT: &str = "\u{E901}";
pub const AIRPLANE_LANDING: &str = "\u{E902}";
pub const AIRPLANE_TAKEOFF: &str = "\u{E903}";
pub const AIRPLANE: &str = "\u{E904}";
pub const AIRPLANE_TILT: &str = "\u{E905}";
pub const AIRPLAY: &str = "\u{E90... | rust | Apache-2.0 | 922e0e29e2a4685249fafe7eba87bb4fffe7d72e | 2026-01-04T20:20:05.778379Z | true |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/rust_wasi_example/src/lib.rs | packages/rust_wasi_example/src/lib.rs | use std::{ffi::c_char, fs::Metadata, time::SystemTime};
#[no_mangle]
pub extern "C" fn print_hello() {
println!("Hello, world! 2");
}
#[no_mangle]
pub extern "C" fn stderr_log(msg_utf16: *const u16, msg_utf16_length: u32) {
let msg = String::from_utf16(unsafe {
std::slice::from_raw_parts(msg_utf16, ms... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/rust_wasi_example/src/main.rs | packages/rust_wasi_example/src/main.rs | fn main() {
std::fs::metadata("foo.txt").unwrap();
println!("Hello, world!");
}
| rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/rust_wasi_example/src/lib_wasm_bindgen.rs | packages/rust_wasi_example/src/lib_wasm_bindgen.rs | // use js_sys::{Array, Uint8Array};
// use wasm_bindgen::{prelude::wasm_bindgen, JsCast, JsValue};
// #[no_mangle]
// pub extern "C" fn print_hello() {
// println!("Hello, world!");
// }
// #[wasm_bindgen]
// pub fn read_file_size(path: String) -> u64 {
// let metadata = std::fs::metadata(path).unwrap();
// ... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/rust_threads_example/src/lib.rs | packages/rust_threads_example/src/lib.rs | // This requires nightly rust and wasm32-unknown-unknown target,
// you may comment out simd code and compile it in stable rust
#![feature(portable_simd)]
use std::cell::RefCell;
use std::simd::{i64x2, u32x4, SimdInt, SimdUint};
use std::sync::atomic::{AtomicI64, Ordering};
static STATE: AtomicI64 = AtomicI64::new(0)... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/dart_wit_component/src/lib.rs | packages/dart_wit_component/src/lib.rs | use std::path::Path;
mod function;
pub mod generate;
mod methods;
mod strings;
mod types;
// Use a procedural macro to generate bindings for the world we specified in
// `with/dart-wit-generator.wit`
wit_bindgen::generate!("dart-wit-generator");
// Define a custom type and implement the generated `Host` trait for it... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/dart_wit_component/src/methods.rs | packages/dart_wit_component/src/methods.rs | use crate::{strings::Normalize, types::Parsed};
use wit_parser::*;
pub trait GeneratedMethodsTrait {
fn to_wasm(&self, name: &str, p: &Parsed) -> String;
fn to_json(&self, name: &str, p: &Parsed) -> String;
fn from_json(&self, name: &str, p: &Parsed) -> Option<String>;
fn to_string(&self, name: &str, p... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/dart_wit_component/src/function.rs | packages/dart_wit_component/src/function.rs | use wit_parser::*;
use crate::{
generate::add_docs,
strings::Normalize,
types::{function_resource, Parsed},
};
pub enum FuncKind {
Resource(TypeOwner),
MethodCall,
Method,
Field,
}
impl Parsed<'_> {
pub fn function_import(&self, key: Option<&WorldKey>, id: &str, f: &Function) -> Strin... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/dart_wit_component/src/types.rs | packages/dart_wit_component/src/types.rs | use std::collections::HashMap;
use crate::{
function::FuncKind, generate::*, strings::Normalize, Int64TypeConfig, WitGeneratorConfig,
};
use wit_parser::*;
pub struct Parsed<'a>(
pub &'a Resolve,
pub HashMap<&'a str, Vec<&'a TypeDef>>,
pub WitGeneratorConfig,
pub HashMap<String, Vec<String>>,
);
... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | true |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/dart_wit_component/src/strings.rs | packages/dart_wit_component/src/strings.rs | pub trait Normalize {
fn as_str(&self) -> &str;
fn as_type(&self) -> String {
heck::AsPascalCase(self.as_str()).to_string()
}
fn as_fn(&self) -> String {
escape_reserved_word(&heck::AsLowerCamelCase(self.as_str()).to_string())
}
fn as_fn_suffix(&self) -> String {
heck:... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/dart_wit_component/src/generate.rs | packages/dart_wit_component/src/generate.rs | use crate::{
function::FuncKind, strings::Normalize, types::*, Int64TypeConfig, WitGeneratorConfig,
};
use std::collections::{HashMap, HashSet};
use wit_parser::*;
pub fn document_to_dart(
parsed: &UnresolvedPackage,
config: WitGeneratorConfig,
) -> Result<String, String> {
let mut s = String::new();
... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/dart_wit_component/wasm_wit_component/example/rust_wit_component_example/src/lib.rs | packages/dart_wit_component/wasm_wit_component/example/rust_wit_component_example/src/lib.rs | // Use a procedural macro to generate bindings for the world we specified in
// `host.wit`
wit_bindgen::generate!({
path: "wit/types-example.wit",
exports: {
world: MyHost,
"types-example-namespace:types-example-pkg/round-trip-numbers": MyHost,
"types-example-namespace:types-example-pkg/... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_run/native/build.rs | packages/wasm_run/native/build.rs | use std::io::Write;
use lib_flutter_rust_bridge_codegen::{
config_parse, frb_codegen, get_symbols_if_no_duplicates, RawOpts,
};
const RUST_INPUT: &str = "src/api.rs";
const DART_OUTPUT: &str = "../lib/src/bridge_generated.dart";
const IOS_C_OUTPUT: &str = "../../wasm_run_flutter/ios/Classes/frb.h";
const MACOS_C... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_run/native/src/external.rs | packages/wasm_run/native/src/external.rs | use std::{
any::Any,
fmt::Debug,
panic::{RefUnwindSafe, UnwindSafe},
};
#[derive(Debug)]
pub struct WFunc {
#[cfg(not(feature = "wasmtime"))]
pub func_wasmi: wasmi::Func,
#[cfg(feature = "wasmtime")]
pub func_wasmtime: wasmtime::Func,
}
#[cfg(feature = "wasmtime")]
impl From<wasmtime::Func... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_run/native/src/config.rs | packages/wasm_run/native/src/config.rs | #[derive(Debug)]
pub struct WasiConfigNative {
/// Whether to capture stdout.
/// If this is true, you can use the [WasmInstance.stdout]
/// getter to retrieve a stream of the module's stdout.
pub capture_stdout: bool,
/// Whether to capture stderr
/// If this is true, you can use the [WasmInsta... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_run/native/src/lib.rs | packages/wasm_run/native/src/lib.rs | mod api;
// #[cfg(feature = "wasmtime")]
// mod api_wt;
// #[cfg(not(feature = "wasmtime"))]
// mod api_wasmi;
mod bridge_generated;
mod config;
mod external;
// mod interface;
#[allow(dead_code)]
mod atomics;
mod types;
| rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_run/native/src/atomics.rs | packages/wasm_run/native/src/atomics.rs | use std::{cell::UnsafeCell, sync::atomic};
pub enum AtomicKind {
I8,
I16,
I32,
I64,
U8,
U16,
U32,
U64,
}
pub enum AtomicOrdering {
Relaxed,
Release,
Acquire,
AcqRel,
SeqCst,
}
impl From<AtomicOrdering> for atomic::Ordering {
fn from(order: AtomicOrdering) -> Se... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_run/native/src/api.rs | packages/wasm_run/native/src/api.rs | pub use crate::atomics::*;
use crate::bridge_generated::{wire_list_wasm_val, Wire2Api};
use crate::config::*;
pub use crate::external::*;
use crate::types::*;
use anyhow::{Ok, Result};
use flutter_rust_bridge::{
support::new_leak_box_ptr, DartAbi, IntoDart, RustOpaque, StreamSink, SyncReturn,
};
use once_cell::sync... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | true |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_run/native/src/types.rs | packages/wasm_run/native/src/types.rs | use std::fmt::Display;
use anyhow::Result;
use flutter_rust_bridge::RustOpaque;
use crate::external::*;
#[cfg(not(feature = "wasmtime"))]
use wasmi::{core::ValueType, *};
#[cfg(not(feature = "wasmtime"))]
pub use wasmi::{Func, Global, GlobalType, Memory, Mutability, Table};
#[allow(non_camel_case_types)]
#[derive(De... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_run/native/src/api_wasmtime.rs | packages/wasm_run/native/src/api_wasmtime.rs | pub use crate::atomics::*;
use crate::bridge_generated::{wire_list_wasm_val, Wire2Api};
use crate::config::*;
pub use crate::external::*;
use crate::types::*;
use anyhow::{Ok, Result};
use flutter_rust_bridge::{
support::new_leak_box_ptr, DartAbi, IntoDart, RustOpaque, StreamSink, SyncReturn,
};
use once_cell::sync... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | true |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_run/native/src/api_wasmi.rs | packages/wasm_run/native/src/api_wasmi.rs | pub use crate::atomics::*;
use crate::bridge_generated::{wire_list_wasm_val, Wire2Api};
use crate::config::*;
pub use crate::external::WFunc;
use crate::types::*;
use anyhow::{Ok, Result};
use flutter_rust_bridge::{
support::new_leak_box_ptr, DartAbi, IntoDart, RustOpaque, StreamSink, SyncReturn,
};
use once_cell::... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_run/native/src/bridge_generated.rs | packages/wasm_run/native/src/bridge_generated.rs | #![allow(
non_camel_case_types,
unused,
clippy::redundant_closure,
clippy::useless_conversion,
clippy::unit_arg,
clippy::double_parens,
non_snake_case,
clippy::too_many_arguments
)]
// AUTO GENERATED FILE, DO NOT EDIT.
// Generated by `flutter_rust_bridge`@ 1.82.4.
use crate::api::*;
us... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | true |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_packages/image_ops/image_ops_wasm/src/lib.rs | packages/wasm_packages/image_ops/image_ops_wasm/src/lib.rs | use std::io::Cursor;
use std::{collections::HashMap, sync::RwLock};
use once_cell::sync::Lazy;
static IMAGES_MAP: Lazy<RwLock<GlobalState>> = Lazy::new(|| RwLock::new(Default::default()));
#[derive(Debug, Default)]
pub struct GlobalState {
pub last_id: u32,
pub images: HashMap<u32, image::DynamicImage>,
}
i... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_packages/wasm_parser/wasm_parser_wasm/src/lib.rs | packages/wasm_packages/wasm_parser/wasm_parser_wasm/src/lib.rs | use std::fmt::Display;
// Use a procedural macro to generate bindings for the world we specified in `wasm-parser.wit`
wit_bindgen::generate!("wasm-parser");
// Define a custom type and implement the generated trait for it which represents
// implementing all the necessary exported interfaces for this component.
struc... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_packages/rust_crypto/rust_crypto_wasm/src/lib.rs | packages/wasm_packages/rust_crypto/rust_crypto_wasm/src/lib.rs | // Use a procedural macro to generate bindings for the world we specified in
// `with/dart-wit-generator.wit`
wit_bindgen::generate!("rust-crypto");
use std::{fmt::Display, fs, io::Read};
use aes_gcm_siv::aead::Aead;
use argon2::password_hash::{rand_core::OsRng, PasswordHasher, PasswordVerifier};
use hmac::Mac;
use s... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_packages/compression_rs/compression_rs_wasm/src/lib.rs | packages/wasm_packages/compression_rs/compression_rs_wasm/src/lib.rs | mod archive;
pub use crate::archive::*;
use std::fmt::Display;
use std::fs::File;
use std::io::prelude::*;
// Use a procedural macro to generate bindings for the world we specified in `compression-rs.wit`
wit_bindgen::generate!("compression-rs");
use compression_rs_namespace::compression_rs::flate::Input;
use export... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_packages/compression_rs/compression_rs_wasm/src/archive.rs | packages/wasm_packages/compression_rs/compression_rs_wasm/src/archive.rs | use crate::{map_err, WitImplementation};
use crate::compression_rs::archive::*;
use crate::exports::compression_rs_namespace::compression_rs;
use std::fs::File;
use std::io::{prelude::*, Cursor};
impl compression_rs::archive::Archive for WitImplementation {
fn write_archive(input: ArchiveInput, path: String) -> ... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | false |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_packages/typesql_parser/typesql_parser_wasm/src/lib.rs | packages/wasm_packages/typesql_parser/typesql_parser_wasm/src/lib.rs | // Use a procedural macro to generate bindings for the world we specified in `typesql-parser.wit`
wit_bindgen::generate!("typesql-parser");
use sqlparser::ast::{self};
// Comment out the following lines to include other generated wit interfaces
// use exports::typesql_parser_namespace::typesql_parser::*;
// use types... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | true |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_packages/typesql_parser/typesql_parser_wasm/src/lib_expand.rs | packages/wasm_packages/typesql_parser/typesql_parser_wasm/src/lib_expand.rs | #![feature(prelude_import)]
#[prelude_import]
use std::prelude::rust_2021::*;
#[macro_use]
extern crate std;
/// https://docs.rs/sqlparser/0.35.0/sqlparser/ast/enum.WindowFrameUnits.html
#[repr(u8)]
pub enum WindowFrameUnits {
Rows,
Range,
Groups,
}
#[automatically_derived]
impl ::core::clone::Clone for Win... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | true |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_packages/y_crdt/y_crdt_wasm/src/lib.rs | packages/wasm_packages/y_crdt/y_crdt_wasm/src/lib.rs | // Use a procedural macro to generate bindings for the world we specified in `y-crdt.wit`
wit_bindgen::generate!({
path: "wit/y-crdt.wit",
exports: {
world: WitImplementation,
"y-crdt-namespace:y-crdt/y-doc-methods": WitImplementation,
},
});
use exports::y_crdt_namespace::y_crdt::y_doc_met... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | true |
juancastillo0/wasm_run | https://github.com/juancastillo0/wasm_run/blob/14b14337c181ac0592c306e8c6a68802e86d1a5b/packages/wasm_packages/y_crdt/y_crdt_wasm/src/lib_expand.rs | packages/wasm_packages/y_crdt/y_crdt_wasm/src/lib_expand.rs | #![feature(prelude_import)]
#[prelude_import]
use std::prelude::rust_2021::*;
#[macro_use]
extern crate std;
pub type YEvent = y_crdt_namespace::y_crdt::y_doc_methods_types::YEvent;
pub type YUndoEvent = y_crdt_namespace::y_crdt::y_doc_methods_types::YUndoEvent;
#[allow(clippy::all)]
pub fn event_callback(function_id: ... | rust | MIT | 14b14337c181ac0592c306e8c6a68802e86d1a5b | 2026-01-04T20:15:50.642058Z | true |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_test/src/lib.rs | crates/synd_test/src/lib.rs | use std::path::PathBuf;
pub mod jwt;
pub mod kvsd;
pub mod mock;
pub const TEST_EMAIL: &str = "ymgyt@ymgyt.io";
pub const TEST_USER_ID: &str = "899cf3fa5afc0aa1";
pub const GITHUB_INVALID_TOKEN: &str = "github_invalid_token";
pub fn certificate() -> PathBuf {
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.jo... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_test/src/kvsd.rs | crates/synd_test/src/kvsd.rs | use std::{future::pending, path::PathBuf, time::Duration};
use futures_util::TryFutureExt;
use tokio::net::{TcpListener, TcpStream};
pub async fn run_kvsd(
kvsd_host: String,
kvsd_port: u16,
kvsd_username: String,
kvsd_password: String,
root_dir: PathBuf,
) -> anyhow::Result<kvsd::client::tcp::Cli... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_test/src/jwt.rs | crates/synd_test/src/jwt.rs | use std::{
ops::{Add, Sub},
time::Duration,
};
use chrono::{DateTime, Utc};
use synd_auth::jwt;
use crate::{TEST_EMAIL, private_key_buff};
pub(super) const DUMMY_GOOGLE_JWT_KEY_ID: &str = "dummy-google-jwt-kid-1";
pub const DUMMY_GOOGLE_CLIENT_ID: &str = "dummy_google_client_id";
pub(super) fn google_test_j... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_test/src/mock/feed.rs | crates/synd_test/src/mock/feed.rs | use axum::{
extract::Path,
http::StatusCode,
response::{IntoResponse, Response},
};
use serde::Deserialize;
#[derive(Deserialize)]
pub(super) struct FeedParams {
feed: String,
}
pub(super) async fn feed(Path(FeedParams { feed }): Path<FeedParams>) -> impl IntoResponse {
let content = match feed.as... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_test/src/mock/mod.rs | crates/synd_test/src/mock/mod.rs | use std::{collections::HashMap, sync::atomic::AtomicUsize, time::Duration};
use axum::{
Form, Json, Router,
http::{HeaderMap, StatusCode},
response::{IntoResponse, Response},
routing::{get, patch, post, put},
};
use headers::{Authorization, Header, authorization::Bearer};
use serde::Serialize;
use synd... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_test/src/mock/github.rs | crates/synd_test/src/mock/github.rs | use serde::Deserialize;
use serde_json::json;
pub mod notifications {
use std::{ops::Sub, sync::LazyLock};
#[allow(clippy::wildcard_imports)]
use super::*;
use axum::{
Json,
extract::{Path, Query},
http::StatusCode,
response::{IntoResponse, Response},
};
use chr... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/prelude.rs | crates/synd_stdx/src/prelude.rs | pub use tracing::{debug, error, info, trace, warn};
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/lib.rs | crates/synd_stdx/src/lib.rs | #[cfg(feature = "byte")]
pub mod byte;
#[cfg(feature = "conf")]
pub mod conf;
pub mod fs;
pub mod io;
pub mod prelude;
pub mod time;
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/time/mod.rs | crates/synd_stdx/src/time/mod.rs | #[cfg(feature = "humantime")]
pub mod humantime;
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/time/humantime/parse.rs | crates/synd_stdx/src/time/humantime/parse.rs | use std::time::Duration;
pub type DurationError = humantime::DurationError;
/// Parse the string representation of a duration, such as "30s".
pub fn parse_duration(s: &str) -> Result<Duration, DurationError> {
humantime::parse_duration(s)
}
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/time/humantime/mod.rs | crates/synd_stdx/src/time/humantime/mod.rs | mod parse;
pub use parse::{DurationError, parse_duration};
pub mod de;
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/time/humantime/de.rs | crates/synd_stdx/src/time/humantime/de.rs | use std::time::Duration;
use serde::{Deserialize, Deserializer};
use crate::time::humantime;
pub fn parse_duration_opt<'de, D>(deserializer: D) -> Result<Option<Duration>, D::Error>
where
D: Deserializer<'de>,
{
match Option::<String>::deserialize(deserializer)? {
Some(duration) => match humantime::p... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/byte/mod.rs | crates/synd_stdx/src/byte/mod.rs | pub type Byte = byte_unit::Byte;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn parse() {
assert_eq!(4_u64 * 1024 * 1024, Byte::parse_str("4MiB", true).unwrap());
assert_eq!(4_u64 * 1000 * 1000, Byte::parse_str("4MB", true).unwrap());
}
}
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/io/mod.rs | crates/synd_stdx/src/io/mod.rs | #[cfg(feature = "color")]
pub mod color;
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/io/color/support.rs | crates/synd_stdx/src/io/color/support.rs | #[derive(PartialEq, Eq)]
pub enum ColorSupport {
Supported,
NotSupported,
}
/// Return whether or not the current environment supports ANSI color output.
pub fn is_color_supported() -> ColorSupport {
use supports_color::Stream;
if supports_color::on(Stream::Stdout).is_some() {
ColorSupport::Sup... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/io/color/mod.rs | crates/synd_stdx/src/io/color/mod.rs | mod support;
pub use support::{ColorSupport, is_color_supported};
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/conf/mod.rs | crates/synd_stdx/src/conf/mod.rs | /// `Entry` holds candidates for the final value for the configuration.
#[derive(Debug)]
pub struct Entry<T> {
flag: Option<T>,
file: Option<T>,
default: T,
}
impl<T> Entry<T> {
pub fn with_default(default: T) -> Self {
Self {
flag: None,
file: None,
default,... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/fs/mod.rs | crates/synd_stdx/src/fs/mod.rs | use std::{fs::File, io, path::Path};
pub mod fsimpl;
#[cfg_attr(feature = "mock", mockall::automock)]
pub trait FileSystem {
#[cfg_attr(feature = "mock", mockall::concretize)]
fn create_dir_all<P: AsRef<Path>>(&self, path: P) -> io::Result<()>;
#[cfg_attr(feature = "mock", mockall::concretize)]
fn cr... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_stdx/src/fs/fsimpl.rs | crates/synd_stdx/src/fs/fsimpl.rs | use std::{fs::File, io, path::Path};
#[derive(Debug, Clone, Default)]
pub struct FileSystem {}
impl FileSystem {
pub fn new() -> Self {
Self {}
}
}
impl super::FileSystem for FileSystem {
fn create_dir_all<P: AsRef<Path>>(&self, path: P) -> std::io::Result<()> {
std::fs::create_dir_all(pa... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_auth/src/config.rs | crates/synd_auth/src/config.rs | pub(crate) mod github {
pub(crate) const CLIENT_ID: &str = "6652e5931c88e528a851";
}
pub(crate) mod google {
pub(crate) const CLIENT_ID: &str = concat!(
"387487893172-",
"u28ebbv8lbl157jjeb7blsts8b5impio",
".apps.googleusercontent.com"
);
// This value is distributed as binary a... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_auth/src/lib.rs | crates/synd_auth/src/lib.rs | //! syndicationd authentication crate providing features
//! related OAuth and JWT.
#![warn(rustdoc::broken_intra_doc_links)]
mod config;
pub mod device_flow;
pub mod jwt;
const USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"));
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_auth/src/jwt/mod.rs | crates/synd_auth/src/jwt/mod.rs | pub mod google;
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_auth/src/jwt/google.rs | crates/synd_auth/src/jwt/google.rs | use std::{
borrow::Cow,
collections::HashMap,
sync::{Arc, RwLock},
time::Duration,
};
use chrono::{DateTime, TimeZone, Utc};
use jsonwebtoken::{Algorithm, DecodingKey, Validation};
use reqwest::{Client, Url};
use serde::{Deserialize, Serialize};
use thiserror::Error;
use crate::{USER_AGENT, config};
... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_auth/src/device_flow/mod.rs | crates/synd_auth/src/device_flow/mod.rs | use std::{borrow::Cow, time::Duration};
use http::{StatusCode, Uri};
use reqwest::{Client, Url};
use serde::{Deserialize, Serialize};
use tracing::debug;
use crate::USER_AGENT;
pub mod provider;
pub trait Provider: private::Sealed {
type DeviceAccessTokenRequest<'d>: Serialize + Send
where
Self: 'd;... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_auth/src/device_flow/provider/mod.rs | crates/synd_auth/src/device_flow/provider/mod.rs | pub mod github;
pub mod google;
pub use {github::Github, google::Google};
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_auth/src/device_flow/provider/google.rs | crates/synd_auth/src/device_flow/provider/google.rs | use std::borrow::Cow;
use reqwest::Url;
use serde::{Deserialize, Serialize};
use crate::{
config,
device_flow::{DeviceAuthorizationRequest, Provider},
};
#[derive(Clone)]
pub struct Google {
client_id: Cow<'static, str>,
client_secret: Cow<'static, str>,
device_authorization_endpoint: Url,
to... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_auth/src/device_flow/provider/github.rs | crates/synd_auth/src/device_flow/provider/github.rs | use std::borrow::Cow;
use reqwest::Url;
use crate::{
config,
device_flow::{DeviceAccessTokenRequest, DeviceAuthorizationRequest, Provider},
};
#[derive(Clone)]
pub struct Github {
client_id: Cow<'static, str>,
device_authorization_endpoint: Url,
token_endpoint: Url,
}
impl Default for Github {
... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/lib.rs | crates/synd_o11y/src/lib.rs | //! syndicationd observability crate providing features
//! related to tracing, opentelemetry, and other observability
//! functionalities.
#![warn(rustdoc::broken_intra_doc_links)]
use ::opentelemetry::KeyValue;
pub mod health_check;
pub mod opentelemetry;
pub mod tracing_subscriber;
pub use opentelemetry::OpenTele... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/health_check.rs | crates/synd_o11y/src/health_check.rs | //! RFC Draft Health Check Response Format for HTTP APIs implementation
//! [RFC Draft](https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check)
use core::fmt;
use std::borrow::Cow;
use serde::{Deserialize, Serialize};
/// Indicates whether the service status is acceptable or not.
#[derive(Default, Deb... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/opentelemetry/resource.rs | crates/synd_o11y/src/opentelemetry/resource.rs | use opentelemetry::KeyValue;
use opentelemetry_sdk::resource::EnvResourceDetector;
use opentelemetry_semantic_conventions::{
SCHEMA_URL,
resource::{SERVICE_NAME, SERVICE_NAMESPACE, SERVICE_VERSION},
};
use std::borrow::Cow;
pub use opentelemetry_sdk::Resource;
/// Return the [`Resource`] of opentelemetry.
///... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/opentelemetry/guard.rs | crates/synd_o11y/src/opentelemetry/guard.rs | use opentelemetry_sdk::{
logs::SdkLoggerProvider, metrics::SdkMeterProvider, trace::SdkTracerProvider,
};
use tracing::warn;
#[expect(clippy::struct_field_names)]
/// `OpenTelemetry` terminination process handler
pub struct OpenTelemetryGuard {
pub(crate) tracer_provider: SdkTracerProvider,
pub(crate) mete... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/opentelemetry/propagation.rs | crates/synd_o11y/src/opentelemetry/propagation.rs | use opentelemetry::propagation::TextMapCompositePropagator;
use opentelemetry_sdk::propagation::{BaggagePropagator, TraceContextPropagator};
pub mod http {
use crate::opentelemetry::extension::*;
use opentelemetry_http::{HeaderExtractor, HeaderInjector};
/// Inject current opentelemetry context into given... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/opentelemetry/mod.rs | crates/synd_o11y/src/opentelemetry/mod.rs | mod resource;
pub use resource::{Resource, resource};
mod propagation;
pub use propagation::{http, init_propagation};
pub use opentelemetry::KeyValue;
mod guard;
pub use guard::OpenTelemetryGuard;
pub mod extension {
pub use opentelemetry::baggage::BaggageExt as _;
pub use tracing_opentelemetry::OpenTelemet... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/tracing_subscriber/initializer.rs | crates/synd_o11y/src/tracing_subscriber/initializer.rs | use crate::{
OpenTelemetryGuard,
opentelemetry::init_propagation,
opentelemetry_layer,
tracing_subscriber::{audit, otel_metrics::metrics_event_filter},
};
const LOG_DIRECTIVE_ENV: &str = "SYND_LOG";
const DEFAULT_LOG_DIRECTIVE: &str = "info";
pub struct TracingInitializer {
app_name: Option<&'stat... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/tracing_subscriber/mod.rs | crates/synd_o11y/src/tracing_subscriber/mod.rs | use std::{borrow::Cow, time::Duration};
use opentelemetry_sdk::{logs, trace};
use tracing::Subscriber;
use tracing_subscriber::{Layer, registry::LookupSpan};
use crate::{OpenTelemetryGuard, tracing_subscriber::otel_metrics::metrics_event_filter};
pub mod audit;
pub mod initializer;
pub mod otel_log;
pub mod otel_met... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/tracing_subscriber/otel_trace/mod.rs | crates/synd_o11y/src/tracing_subscriber/otel_trace/mod.rs | use opentelemetry::{global, trace::TracerProvider};
use opentelemetry_otlp::WithExportConfig;
use opentelemetry_sdk::{
Resource,
trace::{BatchConfig, BatchSpanProcessor, Sampler, SdkTracerProvider, Tracer},
};
use tracing::Subscriber;
use tracing_opentelemetry::OpenTelemetryLayer;
use tracing_subscriber::{Layer... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/tracing_subscriber/otel_metrics/macros.rs | crates/synd_o11y/src/tracing_subscriber/otel_metrics/macros.rs | #[macro_export]
macro_rules! metric {
($($tt:tt)* ) => { ::tracing::event!(
target: $crate::tracing_subscriber::otel_metrics::METRICS_EVENT_TARGET,
::tracing::Level::INFO,
$($tt)*
);}
}
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/tracing_subscriber/otel_metrics/mod.rs | crates/synd_o11y/src/tracing_subscriber/otel_metrics/mod.rs | use std::time::Duration;
use opentelemetry::global;
use opentelemetry_otlp::WithExportConfig;
use opentelemetry_sdk::{
Resource,
metrics::{Instrument, PeriodicReader, SdkMeterProvider, Stream, View},
};
use tracing::{Metadata, Subscriber};
use tracing_opentelemetry::MetricsLayer;
use tracing_subscriber::{Layer... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/tracing_subscriber/audit/mod.rs | crates/synd_o11y/src/tracing_subscriber/audit/mod.rs | use tracing::{
Event, Level, Metadata, Subscriber, field,
span::{self, Attributes},
subscriber::Interest,
};
use tracing_subscriber::{
Layer,
filter::{Directive, Filtered},
layer::{self, Context},
registry::LookupSpan,
};
mod macros {
#[macro_export]
macro_rules! audit_span {
... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_o11y/src/tracing_subscriber/otel_log/mod.rs | crates/synd_o11y/src/tracing_subscriber/otel_log/mod.rs | use opentelemetry_appender_tracing::layer::OpenTelemetryTracingBridge;
use opentelemetry_otlp::WithExportConfig;
use opentelemetry_sdk::{
Resource,
logs::{BatchConfig, SdkLoggerProvider},
};
use tracing::Subscriber;
use tracing_subscriber::{Layer, registry::LookupSpan};
pub fn layer<S>(
endpoint: impl Into... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_feed/src/lib.rs | crates/synd_feed/src/lib.rs | #![allow(clippy::new_without_default)]
#![warn(rustdoc::broken_intra_doc_links)]
pub mod feed;
pub mod types;
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_feed/src/types/feed_type.rs | crates/synd_feed/src/types/feed_type.rs | #[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "graphql", derive(async_graphql::Enum))]
#[cfg_attr(feature = "fake", derive(fake::Dummy))]
pub enum FeedType {
Atom,
#[allow(clippy::upper_case_acronyms)]
JSON,
RSS0,
RSS1,
RSS2,
}
impl From<feed_rs::model::FeedType> for FeedTyp... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_feed/src/types/url.rs | crates/synd_feed/src/types/url.rs | use std::{borrow::Borrow, fmt};
use serde::{Deserialize, Serialize};
use thiserror::Error;
use url::Url;
use crate::types::macros::impl_sqlx_encode_decode;
#[derive(Error, Debug)]
pub enum FeedUrlError {
#[error("invalid url: {0}")]
InvalidUrl(url::ParseError),
}
/// Feed Url which serve rss or atom
#[deriv... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_feed/src/types/category.rs | crates/synd_feed/src/types/category.rs | use std::{
borrow::Cow,
fmt::{self, Display},
};
use serde::{Deserialize, Serialize};
use thiserror::Error;
#[derive(Error, Debug, PartialEq, Eq)]
pub enum CategoryError {
#[error("not empty validation is violated")]
NotEmptyViolated,
#[error("len max validation is violated")]
LenMaxViolated,
... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_feed/src/types/macros.rs | crates/synd_feed/src/types/macros.rs | macro_rules! impl_sqlx_encode_decode {
($ty:ty as String) => {
#[cfg(feature = "sqlx")]
impl sqlx::Type<sqlx::Sqlite> for $ty {
fn type_info() -> sqlx::sqlite::SqliteTypeInfo {
<String as sqlx::Type<sqlx::Sqlite>>::type_info()
}
}
#[cfg(featur... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_feed/src/types/mod.rs | crates/synd_feed/src/types/mod.rs | use std::{borrow::Cow, fmt::Display};
use chrono::{DateTime, Utc};
use feed_rs::model::{self as feedrs, Generator, Link, Person, Text};
pub type Time = DateTime<Utc>;
mod requirement;
pub use requirement::Requirement;
mod category;
pub use category::Category;
mod url;
pub use url::FeedUrl;
mod feed_type;
pub use ... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_feed/src/types/requirement.rs | crates/synd_feed/src/types/requirement.rs | use serde::{Deserialize, Serialize};
use std::{
fmt::{self, Display},
str::FromStr,
};
use crate::types::macros::impl_sqlx_encode_decode;
/// `Requirement` expresses how important the feed is
/// using an analogy to [RFC2119](https://datatracker.ietf.org/doc/html/rfc2119)
#[derive(Clone, Copy, Debug, PartialE... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_feed/src/feed/service.rs | crates/synd_feed/src/feed/service.rs | use std::{sync::Arc, time::Duration};
use async_trait::async_trait;
use feed_rs::parser::{ParseErrorKind, ParseFeedError, Parser};
use crate::types::{Feed, FeedUrl};
pub type FetchFeedResult<T> = std::result::Result<T, FetchFeedError>;
#[derive(Debug, thiserror::Error)]
pub enum FetchFeedError {
#[error("fetch ... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_feed/src/feed/mod.rs | crates/synd_feed/src/feed/mod.rs | pub mod cache;
pub mod service;
| rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
ymgyt/syndicationd | https://github.com/ymgyt/syndicationd/blob/956bec58fcb6dbd9e8740d925649772b1670ead9/crates/synd_feed/src/feed/cache/periodic_refresher.rs | crates/synd_feed/src/feed/cache/periodic_refresher.rs | use std::{sync::Arc, time::Duration};
use synd_o11y::metric;
use tokio_util::sync::CancellationToken;
use tracing::{info, warn};
use crate::feed::service::FetchFeed;
use super::Cache;
pub struct PeriodicRefresher<S> {
service: S,
cache: Cache,
emit_metrics: bool,
}
impl<S> PeriodicRefresher<S> {
pu... | rust | Apache-2.0 | 956bec58fcb6dbd9e8740d925649772b1670ead9 | 2026-01-04T20:11:26.769763Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.