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
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/executor/test_util.rs
crates/executor/test_util.rs
use deno_core::serde_json::Value; use three_em_arweave::arweave::{LoadedContract, TransactionData}; use three_em_arweave::gql_result::{ GQLAmountInterface, GQLBlockInterface, GQLEdgeInterface, GQLNodeInterface, GQLOwnerInterface, GQLTagInterface, }; use three_em_arweave::miscellaneous::ContractType; pub fn generat...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/executor/utils.rs
crates/executor/utils.rs
use deno_core::serde_json::Value; use three_em_arweave::gql_result::{ GQLAmountInterface, GQLBlockInterface, GQLEdgeInterface, GQLNodeInterface, GQLOwnerInterface, GQLTagInterface, }; const ONE_AR: f64 = (1000000000000 as i64) as f64; pub fn ar_to_winston(ar: f64) -> f64 { ar * ONE_AR } pub fn winston_to_ar(win...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/executor/executor.rs
crates/executor/executor.rs
use crate::{get_input_from_interaction, nop_cost_fn}; use deno_core::error::AnyError; use deno_core::serde_json; use deno_core::serde_json::Value; use deno_core::OpState; use deno_ops::op; use indexmap::map::IndexMap; use std::cell::RefCell; use std::collections::HashMap; use std::rc::Rc; use three_em_arweave::arweave:...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/dry_run.rs
crates/cli/dry_run.rs
use deno_core::error::AnyError; use indexmap::map::IndexMap; use serde::Deserialize; use serde::Serialize; use serde_json::Value; use std::collections::HashMap; use std::error::Error; use std::path::Path; use three_em_arweave::arweave::Arweave; use three_em_arweave::cache::ArweaveCache; use three_em_arweave::cache::Cac...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/print_help.rs
crates/cli/print_help.rs
use indoc::indoc; pub fn print_help(sub_command: Option<&str>) { let help = match sub_command.unwrap_or("none") { "dry-run" => indoc! {" three_em dry-run [options] Runs a local contract with local interactions provided in a configuration file. Options: --host...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/node.rs
crates/cli/node.rs
use crate::utils::{parse_node_ip, usize_to_u8_array}; use serde::{Deserialize, Serialize}; use std::io::{Read, Write}; use std::net::TcpStream; #[derive(Serialize, Deserialize)] pub struct Node { pub ip: String, pub port: i32, } impl Node { pub fn new(host: &str, port: i32) -> Node { Node { ip: String...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/lib.rs
crates/cli/lib.rs
mod node; mod utils;
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/core_nodes.rs
crates/cli/core_nodes.rs
use crate::node::Node; pub static CORE_NODES: &str = include_str!("metadata/core_nodes.txt"); pub fn get_core_nodes() -> Vec<Node> { let nodes: Vec<String> = CORE_NODES .to_owned() .split('\n') .map(String::from) .collect(); let nodes: Vec<String> = nodes.iter().filter(|&p| !(p.eq(""))).cloned...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/local_server.rs
crates/cli/local_server.rs
use deno_core::error::AnyError; use hyper::http::response::Parts; use hyper::service::{make_service_fn, service_fn}; use hyper::{Body, Method, Request, Response, Server, StatusCode}; use indoc::indoc; use routerify::prelude::RequestExt; use routerify::{RequestInfo, Router, RouterService}; use std::collections::HashMap;...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/utils.rs
crates/cli/utils.rs
use crate::node::Node; use sha2::Digest; pub fn parse_node_ip(node: &Node) -> String { parse_basic_ip(node.ip.to_string(), node.port) } pub fn parse_basic_ip(ip: String, port: i32) -> String { format!("{}:{}", ip, port) } pub fn usize_to_u8_array(num: u32) -> [u8; 4] { u32::to_le_bytes(num) } pub fn u8_array_...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/run.rs
crates/cli/run.rs
use deno_core::error::AnyError; use std::io::Write; use three_em_arweave::arweave::Arweave; use three_em_arweave::cache::ArweaveCache; use three_em_arweave::cache::CacheExt; use three_em_executor::execute_contract; use three_em_executor::executor::ExecuteResult; #[allow(clippy::too_many_arguments)] pub async fn run( ...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/main.rs
crates/cli/main.rs
/** * @Purpose * Parses cmd arguments. * Initiates a runtime to manage concurrency and schedule tasks * * */ // Imports the moduls in the sister files next to main mod cli; mod core_nodes; mod dry_run; mod local_server; mod messages; mod node; mod print_help; mod run; mod utils; use crate::cli:...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/three_em_arweave_docs.rs
crates/cli/three_em_arweave_docs.rs
use crate::cache::ArweaveCache; use crate::cache::CacheExt; use crate::gql_result::GQLNodeParent; use crate::gql_result::GQLResultInterface; use crate::gql_result::GQLTransactionsResultInterface; use crate::gql_result::{GQLBundled, GQLEdgeInterface}; use crate::miscellaneous::get_contract_type; use crate::miscellaneous...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/messages/get_addr.rs
crates/cli/messages/get_addr.rs
use crate::node::Node; pub fn get_addr(my_node: &Node) -> String { format!( "command:{}\nhost:{}\nversion:{}", "getAddr", my_node.to_string(), env!("CARGO_PKG_VERSION") ) }
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/messages/mod.rs
crates/cli/messages/mod.rs
pub mod get_addr;
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/cli/parse.rs
crates/cli/cli/parse.rs
/** * * @Purpose: Parse cmd arguments so main.rs has data to execute other libs. * Parse Command Arguments and determine whether cmd is 'Run', 'DryRun' or 'Serve'. * Upon Match, grab the rest of the data from 'pargs' and feed it into the 'Flags' enum. * ParseResult enum which houses t...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/crates/cli/cli/mod.rs
crates/cli/cli/mod.rs
pub mod parse;
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/testdata/01_wasm/01_wasm.rs
testdata/01_wasm/01_wasm.rs
use serde::Deserialize; use serde::Serialize; use serde_json::Value; use std::alloc::alloc; use std::alloc::dealloc; use std::alloc::Layout; use std::panic; use std::sync::Once; #[link(wasm_import_module = "3em")] extern "C" { fn smartweave_read_state( // `ptr` is the pointer to the base64 URL encoded sha256 txi...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
three-em/3em
https://github.com/three-em/3em/blob/3c0ffd8ad90850c5bb226b672bcbe2aba0b76228/testdata/03_wasm/03_wasm.rs
testdata/03_wasm/03_wasm.rs
use serde::Deserialize; use serde::Serialize; use serde_json::Value; use std::alloc::alloc; use std::alloc::dealloc; use std::alloc::Layout; #[link(wasm_import_module = "3em")] extern "C" { fn smartweave_read_state( // `ptr` is the pointer to the base64 URL encoded sha256 txid. ptr: *const u8, ptr_len: u...
rust
MIT
3c0ffd8ad90850c5bb226b672bcbe2aba0b76228
2026-01-04T20:20:32.953016Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/lib.rs
src/lib.rs
pub mod world2d;
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/radial_menu.rs
src/radial_menu.rs
use bevy::prelude::*; use bevy_prototype_lyon::entity::ShapeBundle; use bevy_prototype_lyon::geometry::Geometry; use bevy_prototype_lyon::prelude::*; use lyon_tessellation::path::path::Builder; use nodus::world2d::camera2d::MainCamera; pub struct RadialMenu; impl Plugin for RadialMenu { fn build(&self, app: &mut ...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate.rs
src/gate.rs
pub mod core; pub mod file_browser; pub mod graphics; pub mod serialize; pub mod systems; pub mod ui; pub mod undo; use crate::gate::{ core::*, graphics::{ background::*, clk::*, connection_line::*, connector::*, gate::*, highlight::*, light_bulb::*, selector::*, toggle_switch::*, segment_displ...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/world2d.rs
src/world2d.rs
use crate::world2d::camera2d::Camera2DPlugin; use crate::world2d::interaction2d::Interaction2DPlugin; use bevy::prelude::*; /// Ugly solution for ignoring input. pub struct Lock(pub bool); #[derive(Debug, Clone, PartialEq, Eq)] pub enum InteractionMode { Select, Pan, } pub struct NodusWorld2DPlugin; impl Pl...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/rmenu.rs
src/rmenu.rs
use crate::radial_menu::{OpenMenuEvent, PropagateSelectionEvent, UpdateCursorPositionEvent}; use crate::{GameState}; use bevy::prelude::*; use crate::gate::systems::InsertGateEvent; use bevy_asset_loader::AssetCollection; use nodus::world2d::camera2d::MouseWorldPos; pub struct GateMenuPlugin; impl Plugin for GateMen...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/main.rs
src/main.rs
use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin}; use bevy::prelude::*; use bevy_asset_loader::{AssetCollection, AssetLoader}; use bevy_egui::EguiPlugin; use bevy_prototype_lyon::prelude::*; mod gate; mod radial_menu; mod rmenu; // specific usage of the radial_menu use crate::gate::file_browse...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics.rs
src/gate/graphics.rs
pub mod background; pub mod clk; pub mod connection_line; pub mod connector; pub mod gate; pub mod highlight; pub mod light_bulb; pub mod selector; pub mod toggle_switch; pub mod segment_display; use core::sync::atomic::AtomicI32; pub static Z_INDEX: AtomicI32 = AtomicI32::new(10); pub const GATE_SIZE: f32 = 128.; p...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/core.rs
src/gate/core.rs
use bevy::prelude::*; use serde::{Deserialize, Serialize}; use std::{ collections::HashMap, ops::{Deref, DerefMut}, }; macro_rules! trans { ( $( $fun:expr ),* ) => { vec![ $( Box::new($fun) ),* ] }; ( $( $fun:expr ),+ ,) => { trans![ $( $fun ),* ] }; } pub(crate) use trans; //...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/systems.rs
src/gate/systems.rs
use super::{ core::{Name, *}, graphics::{clk::*, light_bulb::*, toggle_switch::*, segment_display::*}, serialize::*, undo::*, }; use bevy::prelude::*; use nodus::world2d::interaction2d::{Drag, Selected}; use nodus::world2d::{InteractionMode, Lock}; use crate::FontAssets; pub fn shortcut_system( mut...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/serialize.rs
src/gate/serialize.rs
use crate::{ gate::{ core::{Name, State, *}, file_browser::*, graphics::{clk::*, light_bulb::*, toggle_switch::*, segment_display::*,}, }, FontAssets, }; use bevy::prelude::*; use chrono::prelude::*; use ron::ser::{to_string_pretty, PrettyConfig}; use serde::{Deserialize, Serialize};...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/file_browser.rs
src/gate/file_browser.rs
use crate::gate::core::*; use crate::gate::serialize::*; use bevy::prelude::*; use bevy_egui::{egui, egui::RichText, EguiContext}; use dirs; use std::ffi::OsString; use std::fs::{self}; use std::io; use std::path::Path; pub struct EguiFileBrowserPlugin; impl Plugin for EguiFileBrowserPlugin { fn build(&self, app:...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/undo.rs
src/gate/undo.rs
use std::collections::hash_set::HashSet; use crate::gate::{ core::{Name, *}, graphics::{clk::*, light_bulb::*, toggle_switch::*, segment_display::*}, serialize::*, }; use bevy::prelude::*; use crate::GameState; pub struct UndoPlugin; impl Plugin for UndoPlugin { fn build(&self, app: &mut App) { ...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/ui.rs
src/gate/ui.rs
use crate::gate::{ core::{Name, *}, file_browser::*, graphics::clk::Clk, graphics::gate::ChangeInput, serialize::*, undo::*, }; use crate::radial_menu::Menu; use bevy::app::AppExit; use bevy::prelude::*; use bevy_egui::{egui, EguiContext, EguiSettings}; use nodus::world2d::camera2d::MainCamera; ...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics/connection_line.rs
src/gate/graphics/connection_line.rs
use crate::gate::core::{State, *}; use bevy::prelude::*; use bevy_prototype_lyon::{entity::ShapeBundle, prelude::*}; use lyon_tessellation::path::path::Builder; use nodus::world2d::camera2d::MouseWorldPos; use nodus::world2d::interaction2d::Selected; /// Sameple the cubic bezier curve, defined by s` (start), /// `c1` ...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics/toggle_switch.rs
src/gate/graphics/toggle_switch.rs
use super::*; use crate::gate::core::{State, *}; use crate::gate::serialize::*; use bevy::prelude::*; use bevy_prototype_lyon::prelude::*; use lyon_tessellation::path::path::Builder; use nodus::world2d::interaction2d::{Draggable, Hover, Interactable, Selectable}; use std::collections::HashMap; use std::sync::atomic::Or...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics/highlight.rs
src/gate/graphics/highlight.rs
use crate::gate::core::{ConnectionLine, Connector}; use bevy::prelude::*; use bevy_prototype_lyon::prelude::*; use nodus::world2d::interaction2d::Selected; /// Marker component for entities that act as highlighters. #[derive(Debug, Clone, PartialEq, Component)] pub struct Highlighter; /// Marker component for entitie...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics/connector.rs
src/gate/graphics/connector.rs
use crate::gate::core::*; use bevy::prelude::*; use bevy_prototype_lyon::{entity::ShapeBundle, prelude::*}; use nodus::world2d::camera2d::MouseWorldPos; use nodus::world2d::interaction2d::{Drag, Draggable, Hover, Interactable, Selectable}; impl Connector { /// Create a new connector for a logic node. pub fn wi...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics/light_bulb.rs
src/gate/graphics/light_bulb.rs
use super::*; use crate::gate::core::{State, *}; use crate::gate::serialize::*; use bevy::prelude::*; use bevy_prototype_lyon::{entity::ShapeBundle, prelude::*, shapes::SvgPathShape}; use nodus::world2d::interaction2d::{Draggable, Interactable, Selectable}; use std::sync::atomic::Ordering; /// SVG path of a light bulb...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics/clk.rs
src/gate/graphics/clk.rs
use super::*; use crate::gate::core::{State, *}; use crate::gate::serialize::*; use bevy::prelude::*; use bevy_prototype_lyon::prelude::*; use lyon_tessellation::path::path::Builder; use nodus::world2d::interaction2d::{Draggable, Interactable, Selectable}; use std::collections::HashMap; use std::sync::atomic::Ordering;...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics/gate.rs
src/gate/graphics/gate.rs
use super::*; use crate::gate::core::{State, *}; use crate::gate::serialize::*; use bevy::prelude::*; use bevy_prototype_lyon::{entity::ShapeBundle, prelude::*}; use lyon_tessellation::path::path::Builder; use nodus::world2d::interaction2d::{Draggable, Interactable, Selectable}; use std::collections::HashMap; use std::...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics/segment_display.rs
src/gate/graphics/segment_display.rs
use super::*; use crate::gate::core::{State, *}; use crate::gate::serialize::*; use bevy::prelude::*; use bevy_prototype_lyon::prelude::*; use lyon_tessellation::path::path::Builder; use nodus::world2d::interaction2d::{Draggable, Hover, Interactable, Selectable}; use std::collections::HashMap; use std::sync::atomic::Or...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics/selector.rs
src/gate/graphics/selector.rs
use crate::gate::{ core::Gate, graphics::{clk::Clk, light_bulb::LightBulb, toggle_switch::ToggleSwitch, segment_display::*,}, }; use bevy::prelude::*; use bevy_prototype_lyon::prelude::*; use nodus::world2d::camera2d::MouseWorldPos; use nodus::world2d::interaction2d::{Hover, Selected}; use nodus::world2d::{Inte...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
r4gus/nodus
https://github.com/r4gus/nodus/blob/853a0f42a05913674b30e2a3b0a79317887422ba/src/gate/graphics/background.rs
src/gate/graphics/background.rs
use bevy::prelude::*; use bevy_prototype_lyon::prelude::*; use nodus::world2d::camera2d::*; #[derive(Debug, Clone, Copy, PartialEq, Component)] pub struct BackgroundGrid; pub fn draw_background_grid_system( mut commands: Commands, wnds: Res<Windows>, mut q: QuerySet<( QueryState<&mut Transform, (W...
rust
MIT
853a0f42a05913674b30e2a3b0a79317887422ba
2026-01-04T20:19:46.997032Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/build.rs
build.rs
use std::path::PathBuf; use std::process::Command; use std::{env, fs}; fn main() { // 在 docs.rs 构建环境中,跳过所有 C++ 编译 if env::var("DOCS_RS").is_ok() || env::var("CARGO_FEATURE_DOCSRS").is_ok() { println!("cargo:warning=Building for docs.rs, skipping C++ compilation"); return; } let manifes...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/src/postprocess.rs
src/postprocess.rs
//! Postprocessing Utilities //! //! Provides post-processing functions for text detection results, including bounding box extraction, NMS, box merging, etc. use image::GrayImage; use imageproc::contours::{find_contours, Contour}; use imageproc::point::Point; use imageproc::rect::Rect; /// Text bounding box #[derive(...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/src/engine.rs
src/engine.rs
//! OCR Engine //! //! Provides complete OCR pipeline encapsulation, performs detection and recognition in one call use image::DynamicImage; use std::path::Path; use crate::det::{DetModel, DetOptions}; use crate::error::OcrResult; use crate::mnn::{Backend, InferenceConfig, PrecisionMode}; use crate::postprocess::Text...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/src/lib.rs
src/lib.rs
//! # Rust PaddleOCR //! //! A high-performance OCR library based on PaddleOCR models, using the MNN inference framework. //! //! ## Version 2.0 New Features //! //! - **New API Design**: Complete layered API from low-level models to high-level pipeline //! - **Flexible Model Loading**: Support loading models from file...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/src/error.rs
src/error.rs
//! OCR error type definitions use thiserror::Error; use crate::mnn::MnnError; /// OCR error type #[derive(Error, Debug)] pub enum OcrError { /// MNN inference engine error #[error("MNN inference error: {0}")] MnnError(#[from] MnnError), /// Image processing error #[error("Image processing error...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/src/det.rs
src/det.rs
//! Text Detection Model //! //! Provides text region detection functionality based on PaddleOCR detection models use image::{DynamicImage, GenericImageView}; use ndarray::ArrayD; use std::path::Path; use crate::error::{OcrError, OcrResult}; use crate::mnn::{InferenceConfig, InferenceEngine}; use crate::postprocess::...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/src/rec.rs
src/rec.rs
//! Text Recognition Model //! //! Provides text recognition functionality based on PaddleOCR recognition models use image::DynamicImage; use ndarray::ArrayD; use std::path::Path; use crate::error::{OcrError, OcrResult}; use crate::mnn::{InferenceConfig, InferenceEngine}; use crate::preprocess::{preprocess_for_rec, N...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/src/preprocess.rs
src/preprocess.rs
//! Image Preprocessing Utilities //! //! Provides various image preprocessing functions required for OCR use image::{DynamicImage, GenericImageView, RgbImage}; use ndarray::{Array4, ArrayBase, Dim, OwnedRepr}; /// Image normalization parameters #[derive(Debug, Clone)] pub struct NormalizeParams { /// RGB channel...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/src/mnn/docsrs_stub.rs
src/mnn/docsrs_stub.rs
//! docsrs stub module - for documentation generation //! //! This module is used during docs.rs build, providing type definitions without actual implementations use ndarray::{ArrayD, ArrayViewD}; use std::path::Path; // ============== Error Types ============== /// MNN-related errors #[derive(Debug, Clone, PartialE...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/src/mnn/mod.rs
src/mnn/mod.rs
//! MNN Inference Engine FFI Binding Layer //! //! This module encapsulates the low-level interfaces of the MNN C++ inference framework, providing safe Rust APIs. // Use stub implementation when building on docs.rs #[cfg(feature = "docsrs")] mod docsrs_stub; #[cfg(feature = "docsrs")] pub use docsrs_stub::*; // Use ...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/tests/integration_tests.rs
tests/integration_tests.rs
//! 集成测试 //! //! Integration Tests //! //! 这些测试需要模型文件才能运行 use ocr_rs::{ DetModel, DetOptions, DetPrecisionMode, OcrEngine, OcrEngineConfig, RecModel, RecOptions, }; /// 测试模型文件路径 const DET_MODEL_PATH: &str = "models/PP-OCRv5_mobile_det.mnn"; const REC_MODEL_PATH: &str = "models/PP-OCRv5_mobile_rec.mnn"; const CHAR...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/benches/bench_metrics.rs
benches/bench_metrics.rs
use criterion::{criterion_group, criterion_main, Criterion}; use image::DynamicImage; use ocr_rs::{DetModel, DetOptions, DetPrecisionMode, RecModel, RecOptions}; use std::time::Duration; fn setup() -> (DetModel, RecModel, DynamicImage) { // Load models - Complete before performance testing let det = DetModel::...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/examples/advanced.rs
examples/advanced.rs
//! 高级使用示例 //! //! Advanced Usage Example //! //! 展示如何使用底层 API 进行更精细的控制 use ocr_rs::{ DetModel, DetOptions, DetPrecisionMode, InferenceConfig, PrecisionMode, RecModel, RecOptions, }; use std::env; use std::error::Error; use std::time::Instant; fn main() -> Result<(), Box<dyn Error>> { // 初始化日志 env_logger:...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/examples/optimized_batch.rs
examples/optimized_batch.rs
//! 优化的批量识别示例 //! //! 展示新的优化功能: //! 1. 真正的批量推理 //! 2. 减少内存克隆 //! 3. 并行处理支持 use ocr_rs::{OcrEngine, OcrEngineConfig}; use std::time::Instant; fn main() -> Result<(), Box<dyn std::error::Error>> { // 初始化日志 env_logger::init(); println!("=== OCR 批量识别性能优化示例 ===\n"); // 模型路径 let det_model = "models/PP...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/examples/visualize_det.rs
examples/visualize_det.rs
//! 可视化检测结果 use image::{GenericImageView, Rgb}; use imageproc::drawing::draw_hollow_rect_mut; use imageproc::rect::Rect; use std::env; use ocr_rs::{DetOptions, OcrEngine, OcrEngineConfig}; fn main() { let args: Vec<String> = env::args().collect(); if args.len() < 5 { eprintln!("用法: visualize_det <det...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/examples/benchmark_backends.rs
examples/benchmark_backends.rs
//! GPU 后端性能测试 //! //! GPU Backend Performance Benchmark //! //! 测试不同后端的推理速度,包括 CPU、Metal、OpenCL、Vulkan 等 use ocr_rs::{Backend, DetOptions, OcrEngine, OcrEngineConfig}; use std::error::Error; use std::time::{Duration, Instant}; /// 执行多次推理并统计性能 fn benchmark_backend( backend: Backend, image_path: &str, det_...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/examples/gpu_inference.rs
examples/gpu_inference.rs
//! GPU 推理示例 //! //! GPU Inference Example //! //! 展示如何配置和使用 GPU 加速 use ocr_rs::{Backend, DetOptions, OcrEngine, OcrEngineConfig}; use std::env; use std::error::Error; use std::time::Instant; fn main() -> Result<(), Box<dyn Error>> { // 初始化日志 env_logger::init(); // 获取命令行参数 let args: Vec<String> = env...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/examples/debug_ocr.rs
examples/debug_ocr.rs
//! OCR 调试示例 //! //! 功能: //! 1. 可视化文本检测框(绘制并保存) //! 2. 输出详细的识别结果(文本、置信度、坐标) //! 3. 适用于调试和验证 OCR 流程 use image::{GenericImageView, Rgb, RgbImage}; use imageproc::drawing::draw_hollow_rect_mut; use imageproc::rect::Rect; use ocr_rs::{OcrEngine, OcrEngineConfig}; use std::env; fn main() -> Result<(), Box<dyn std::error::...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/examples/debug_det.rs
examples/debug_det.rs
//! 调试检测模型输出 use image::GenericImageView; use ocr_rs::mnn::{InferenceConfig, InferenceEngine}; use ocr_rs::postprocess::extract_boxes_from_mask_with_padding; use ocr_rs::preprocess::{preprocess_for_det, NormalizeParams}; use std::env; fn main() { let args: Vec<String> = env::args().collect(); if args.len() < ...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
zibo-chen/rust-paddle-ocr
https://github.com/zibo-chen/rust-paddle-ocr/blob/2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e/examples/debug_rec.rs
examples/debug_rec.rs
//! 调试识别模型输出 use image::GenericImageView; use ocr_rs::mnn::{InferenceConfig, InferenceEngine}; use ocr_rs::preprocess::{preprocess_for_rec, NormalizeParams}; use std::env; use std::fs; fn main() { let args: Vec<String> = env::args().collect(); if args.len() < 4 { eprintln!("用法: debug_rec <模型路径> <字符集路径...
rust
Apache-2.0
2ef84ebbc1d07d8ea6296340e3c05496bd7dfe8e
2026-01-04T20:19:51.104139Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/imaging/src/lib.rs
wsdl_rs/imaging/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "timg", namespace = "timg: http://www.o...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/ws_addr/src/lib.rs
wsdl_rs/ws_addr/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use yaserde_derive::{YaDeserialize, YaSerialize}; pub type EndpointReference = EndpointReferenceType; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "tns", ...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/ws_discovery/src/lib.rs
wsdl_rs/ws_discovery/src/lib.rs
pub mod probe { use yaserde_derive::YaSerialize; #[derive(Default, Eq, PartialEq, Debug, YaSerialize)] #[yaserde( prefix = "d", namespace = "d: http://schemas.xmlsoap.org/ws/2005/04/discovery" )] pub struct Probe { #[yaserde(prefix = "d", rename = "Types")] pub types...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/bf_2/src/lib.rs
wsdl_rs/bf_2/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use validate::Validate; use ws_addr as wsa; use xml_xsd as xml; use xsd_types::types as xsd; use yaserde_derive::{YaDeserialize, YaSerialize}; // pub type BaseFault = BaseFaultType; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix =...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/replay/src/lib.rs
wsdl_rs/replay/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use validate::Validate; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "trp", namespace = "trp: http://www.onvif.org/ver10/replay/wsdl" )] pub struct GetServ...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/uplink/src/lib.rs
wsdl_rs/uplink/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use validate::Validate; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "tup", namespace = "tup: http://www.onvif.org/ver10/uplink/wsdl" )] pub struct GetServiceCapabilities {...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/provisioning/src/lib.rs
wsdl_rs/provisioning/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use validate::Validate; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; // The direction for PanMove to move the device. #[derive(PartialEq, Debug, YaSerialize, YaDeserialize)] pub enum PanDirection { // Move left in re...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/display/src/lib.rs
wsdl_rs/display/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use validate::Validate; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "tls", namespace = "tls: http://www.onvif.org/ver10/display/wsdl" )] pub struct GetSer...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/xml_xsd/src/lib.rs
wsdl_rs/xml_xsd/src/lib.rs
use yaserde_derive::{YaDeserialize, YaSerialize}; // TODO: replace with actual types generated from .xsd #[derive(Default, Eq, PartialEq, Debug, YaSerialize, YaDeserialize)] pub struct Lang {}
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/thermal/src/lib.rs
wsdl_rs/thermal/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use validate::Validate; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(PartialEq, Debug, YaSerialize, YaDeserialize)] pub enum Polarity { WhiteHot, BlackHot, __Unknown__(String), } impl Default for Polarity { fn default() ->...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/devicemgmt/src/lib.rs
wsdl_rs/devicemgmt/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "tds", name...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/actionengine/src/lib.rs
wsdl_rs/actionengine/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use b_2 as wsnt; use onvif as tt; use validate::Validate; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "tae", namespace = "tae: http://www.onvif...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/authenticationbehavior/src/lib.rs
wsdl_rs/authenticationbehavior/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use types as pt; use validate::Validate; use yaserde_derive::{YaDeserialize, YaSerialize}; // The service capabilities reflect optional functionality of a service. The // information is static // and does not change during device operation. The followin...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/accesscontrol/src/lib.rs
wsdl_rs/accesscontrol/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use types as pt; use validate::Validate; use yaserde_derive::{YaDeserialize, YaSerialize}; // The service capabilities reflect optional functionality of a service. // The information is static and does not change during device operation. // The following capabilities ar...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/schedule/src/lib.rs
wsdl_rs/schedule/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use types as pt; use validate::Validate; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; // The service capabilities reflect optional functionality of a service. // The information is static and does not change during device operation. // T...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/t_1/src/lib.rs
wsdl_rs/t_1/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "wstop", namespace = "wstop: http://docs.oasis-open.org/...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/receiver/src/lib.rs
wsdl_rs/receiver/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use validate::Validate; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "trv", namespace = "trv: http://www.onvif.org/ver10/receiver/wsdl" )] pub struct GetSe...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/deviceio/src/lib.rs
wsdl_rs/deviceio/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use devicemgmt as tds; use onvif as tt; use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( p...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/event/src/lib.rs
wsdl_rs/event/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use b_2 as wsnt; use t_1 as wstop; use validate::Validate; use ws_addr as wsa; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "tev", namespace = "...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/media2/src/lib.rs
wsdl_rs/media2/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "tr2", namespace = "tr2: http://www.onv...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/media/src/lib.rs
wsdl_rs/media/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "trt", namespace = "trt: http://www.onv...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/search/src/lib.rs
wsdl_rs/search/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use validate::Validate; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "tse", namespace = "tse: http://www.onvif.org/ver10/search...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/ptz/src/lib.rs
wsdl_rs/ptz/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use validate::Validate; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "tptz", namespace = "tptz: http://www.onvif.org/ver20/ptz/...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/analytics/src/lib.rs
wsdl_rs/analytics/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use validate::Validate; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "tan", namespace = "tan: http://www.onvif.org/ver20/analytics/wsdl" )] pub struct GetS...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/accessrules/src/lib.rs
wsdl_rs/accessrules/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use types as pt; use validate::Validate; use yaserde_derive::{YaDeserialize, YaSerialize}; // The service capabilities reflect optional functionality of a service. The // information is static // and does not change during device operation. The following capabilities ar...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/credential/src/lib.rs
wsdl_rs/credential/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use std::str::FromStr; use types as pt; use validate::Validate; use xsd_macro_utils::*; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; // The service capabilities reflect optional functionality of a service. The // information is static //...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/b_2/src/lib.rs
wsdl_rs/b_2/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use t_1 as wstop; use validate::Validate; use ws_addr as wsa; use xsd_macro_utils::*; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "wsnt", names...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/doorcontrol/src/lib.rs
wsdl_rs/doorcontrol/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use types as pt; use validate::Validate; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; // ServiceCapabilities structure reflects optional functionality of a service. // The information is static and does not change during device operation...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/advancedsecurity/src/lib.rs
wsdl_rs/advancedsecurity/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; // Unique identifier for keys in the keystore. #[derive(Default, PartialEq, Debug, UtilsTupleIo, UtilsDefaultSerde)] pub ...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/wsdl_rs/recording/src/lib.rs
wsdl_rs/recording/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "trc", name...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/xsd_rs/xmlmime/src/lib.rs
xsd_rs/xmlmime/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, UtilsTupleIo, UtilsDefaultSerde)] pub struct ContentType(pub String); impl Validate for ContentType { fn val...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/xsd_rs/radiometry/src/lib.rs
xsd_rs/radiometry/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use onvif as tt; use validate::Validate; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "ttr", namespace = "ttr: http://www.onvif.org/ver20/analyt...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/xsd_rs/onvif_xsd/src/lib.rs
xsd_rs/onvif_xsd/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use b_2 as wsnt; use soap_envelope as soapenv; use std::str::FromStr; use validate::Validate; use xmlmime as xmime; use xsd_macro_utils::*; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; pub use common::*; // Base class for physical entit...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
true
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/xsd_rs/rules/src/lib.rs
xsd_rs/rules/src/lib.rs
use onvif as tt; use validate::Validate; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde( prefix = "axt", namespace = "axt: http://www.onvif.org/ver20/analytics" )] pub struct MotionRegionConfigOptions { // The total number of Mot...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/xsd_rs/common/src/lib.rs
xsd_rs/common/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; // Unique identifier for a physical or logical resource. // Tokens should be assigned such that they are unique within a ...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/xsd_rs/types/src/lib.rs
xsd_rs/types/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] use std::str::FromStr; use validate::Validate; use xsd_macro_utils::*; use yaserde_derive::{YaDeserialize, YaSerialize}; // Type used to reference logical and physical entities. // Token may be extended by intermediate terminal with adding prefix to make it // global un...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/xsd_rs/metadatastream/src/lib.rs
xsd_rs/metadatastream/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] #![allow(clippy::large_enum_variant)] use b_2 as wsnt; use common::*; use validate::Validate; use xsd_types::types as xs; use yaserde_derive::{YaDeserialize, YaSerialize}; #[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)] #[yaserde(prefix = "tt", namespac...
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false
lumeohq/onvif-rs
https://github.com/lumeohq/onvif-rs/blob/8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6/xsd_rs/xop/src/lib.rs
xsd_rs/xop/src/lib.rs
#![allow(clippy::derive_partial_eq_without_eq)] pub mod include; pub use include::*;
rust
MIT
8f1490e2ce5e2ddd29dbd3ab2586d7a90da0b6d6
2026-01-04T20:20:57.434821Z
false