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
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/routes/orderbook.rs
coordinator/src/routes/orderbook.rs
use crate::check_version::check_version; use crate::db; use crate::orderbook; use crate::orderbook::db::orders; use crate::orderbook::trading::NewOrderMessage; use crate::orderbook::websocket::websocket_connection; use crate::routes::AppState; use crate::AppError; use anyhow::anyhow; use anyhow::Context; use anyhow::Re...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/routes/admin.rs
coordinator/src/routes/admin.rs
use crate::collaborative_revert; use crate::db; use crate::funding_fee::insert_funding_rates; use crate::parse_dlc_channel_id; use crate::position::models::Position; use crate::referrals; use crate::routes::AppState; use crate::settings::SettingsFile; use crate::AppError; use anyhow::Context; use axum::extract::Path; u...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/position/mod.rs
coordinator/src/position/mod.rs
pub mod models;
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/position/models.rs
coordinator/src/position/models.rs
use crate::compute_relative_contracts; use crate::decimal_from_f32; use crate::f32_from_decimal; use crate::FundingFee; use anyhow::bail; use anyhow::Context; use anyhow::Result; use bitcoin::secp256k1::PublicKey; use bitcoin::Address; use bitcoin::Amount; use bitcoin::Txid; use dlc_manager::ContractId; use dlc_manager...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
true
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/bin/coordinator.rs
coordinator/src/bin/coordinator.rs
use anyhow::Context; use anyhow::Result; use bitcoin::key::XOnlyPublicKey; use coordinator::backup::SledBackup; use coordinator::cli::Opts; use coordinator::db; use coordinator::dlc_handler; use coordinator::dlc_handler::DlcHandler; use coordinator::funding_fee::generate_funding_fee_events_periodically; use coordinator...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/async_match.rs
coordinator/src/orderbook/async_match.rs
use crate::check_version::check_version; use crate::db; use crate::message::OrderbookMessage; use crate::node::Node; use crate::orderbook::db::matches; use crate::orderbook::db::orders; use crate::trade::TradeExecutor; use anyhow::ensure; use anyhow::Result; use bitcoin::secp256k1::PublicKey; use bitcoin::secp256k1::XO...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/websocket.rs
coordinator/src/orderbook/websocket.rs
use crate::db; use crate::db::user; use crate::funding_fee::get_funding_fee_events_for_active_trader_positions; use crate::funding_fee::get_next_funding_rate; use crate::message::NewUserMessage; use crate::orderbook::db::orders; use crate::orderbook::trading::NewOrderMessage; use crate::referrals; use crate::routes::Ap...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/trading.rs
coordinator/src/orderbook/trading.rs
use crate::db; use crate::message::OrderbookMessage; use crate::node::Node; use crate::notifications::Notification; use crate::notifications::NotificationKind; use crate::orderbook::db::matches; use crate::orderbook::db::orders; use crate::referrals; use crate::trade::TradeExecutor; use crate::ChannelOpeningParams; use...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/mod.rs
coordinator/src/orderbook/mod.rs
pub mod async_match; pub mod collaborative_revert; pub mod db; pub mod trading; pub mod websocket; #[cfg(test)] mod tests;
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/collaborative_revert.rs
coordinator/src/orderbook/collaborative_revert.rs
use crate::db::collaborative_reverts; use crate::message::NewUserMessage; use crate::message::OrderbookMessage; use anyhow::bail; use anyhow::Result; use bitcoin::secp256k1::PublicKey; use bitcoin::Address; use bitcoin::Network; use diesel::r2d2::ConnectionManager; use diesel::r2d2::Pool; use diesel::PgConnection; use ...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/db/matches.rs
coordinator/src/orderbook/db/matches.rs
use crate::orderbook::db::custom_types::MatchState; use crate::orderbook::trading::TraderMatchParams; use crate::schema::matches; use anyhow::ensure; use anyhow::Result; use bitcoin::secp256k1::PublicKey; use bitcoin::Amount; use diesel::ExpressionMethods; use diesel::Insertable; use diesel::PgConnection; use diesel::Q...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/db/mod.rs
coordinator/src/orderbook/db/mod.rs
pub mod custom_types; pub mod matches; pub mod orders;
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/db/custom_types.rs
coordinator/src/orderbook/db/custom_types.rs
use crate::schema::sql_types::DirectionType; use crate::schema::sql_types::MatchStateType; use crate::schema::sql_types::OrderReasonType; use crate::schema::sql_types::OrderStateType; use crate::schema::sql_types::OrderTypeType; use diesel::deserialize; use diesel::deserialize::FromSql; use diesel::pg::Pg; use diesel::...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/db/orders.rs
coordinator/src/orderbook/db/orders.rs
use crate::db::positions::ContractSymbol; use crate::orderbook::db::custom_types::Direction; use crate::orderbook::db::custom_types::MatchState; use crate::orderbook::db::custom_types::OrderReason; use crate::orderbook::db::custom_types::OrderState; use crate::orderbook::db::custom_types::OrderType; use crate::schema::...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/tests/sample_test.rs
coordinator/src/orderbook/tests/sample_test.rs
use crate::logger::init_tracing_for_test; use crate::orderbook::db::orders; use crate::orderbook::tests::setup_db; use crate::orderbook::tests::start_postgres; use bitcoin::secp256k1::PublicKey; use rust_decimal_macros::dec; use std::str::FromStr; use testcontainers::clients::Cli; use time::Duration; use time::OffsetDa...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/tests/mod.rs
coordinator/src/orderbook/tests/mod.rs
mod registration_test; mod sample_test; use crate::run_migration; use anyhow::Result; use diesel::r2d2; use diesel::r2d2::ConnectionManager; use diesel::r2d2::PooledConnection; use diesel::PgConnection; use testcontainers::clients::Cli; use testcontainers::core::WaitFor; use testcontainers::images; use testcontainers:...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/orderbook/tests/registration_test.rs
coordinator/src/orderbook/tests/registration_test.rs
use crate::db::user; use crate::logger::init_tracing_for_test; use crate::orderbook::tests::setup_db; use crate::orderbook::tests::start_postgres; use bitcoin::secp256k1::PublicKey; use std::str::FromStr; use testcontainers::clients::Cli; #[tokio::test] async fn registered_user_is_stored_in_db() { init_tracing_for...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/trade/websocket.rs
coordinator/src/trade/websocket.rs
use crate::db; use crate::position::models::Position; use crate::routes::AppState; use axum::extract::ws::Message as WebsocketMessage; use axum::extract::ws::WebSocket; use axum::extract::State; use axum::extract::WebSocketUpgrade; use axum::response::IntoResponse; use diesel::r2d2::ConnectionManager; use diesel::r2d2:...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/trade/mod.rs
coordinator/src/trade/mod.rs
use crate::compute_relative_contracts; use crate::db; use crate::decimal_from_f32; use crate::dlc_protocol; use crate::funding_fee::funding_fee_from_funding_fee_events; use crate::funding_fee::get_outstanding_funding_fee_events; use crate::message::OrderbookMessage; use crate::node::Node; use crate::orderbook::db::matc...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
true
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/trade/models.rs
coordinator/src/trade/models.rs
use bitcoin::secp256k1::PublicKey; use bitcoin::Amount; use time::OffsetDateTime; use xxi_node::commons::ContractSymbol; use xxi_node::commons::Direction; #[derive(Debug)] pub struct NewTrade { pub position_id: i32, pub contract_symbol: ContractSymbol, pub trader_pubkey: PublicKey, pub quantity: f32, ...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/funding_fee/db.rs
coordinator/src/funding_fee/db.rs
pub mod funding_fee_events; pub mod funding_rates; pub mod protocol_funding_fee_events; pub use funding_fee_events::*; pub use funding_rates::*; pub use protocol_funding_fee_events::*;
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/funding_fee/db/protocol_funding_fee_events.rs
coordinator/src/funding_fee/db/protocol_funding_fee_events.rs
//! The `protocol_funding_fee_events` table defines the relationship between funding fee events and //! the DLC protocol that will resolve them. use crate::schema::protocol_funding_fee_events; use diesel::prelude::*; use xxi_node::node::ProtocolId; pub fn insert_protocol_funding_fee_event( conn: &mut PgConnection...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/funding_fee/db/funding_rates.rs
coordinator/src/funding_fee/db/funding_rates.rs
use crate::schema::funding_rates; use anyhow::Result; use diesel::prelude::*; use rust_decimal::prelude::FromPrimitive; use rust_decimal::prelude::ToPrimitive; use rust_decimal::Decimal; use time::OffsetDateTime; use xxi_node::commons::to_nearest_hour_in_the_past; #[derive(Insertable, Debug)] #[diesel(table_name = fun...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
get10101/10101
https://github.com/get10101/10101/blob/3ae135090528d64fbe2702aa03e1e3953cd57e2f/coordinator/src/funding_fee/db/funding_fee_events.rs
coordinator/src/funding_fee/db/funding_fee_events.rs
use crate::db::positions::Position; use crate::db::positions::PositionState; use crate::decimal_from_f32; use crate::f32_from_decimal; use crate::funding_fee; use crate::schema::funding_fee_events; use crate::schema::positions; use crate::schema::protocol_funding_fee_events; use bitcoin::secp256k1::PublicKey; use bitco...
rust
MIT
3ae135090528d64fbe2702aa03e1e3953cd57e2f
2026-01-04T20:18:11.134572Z
false
ctsrc/Pgen
https://github.com/ctsrc/Pgen/blob/7f54478e9f5947b5b146d6e5eab4c3bd224fa566/crates/pgen/src/bip39_algorithm.rs
crates/pgen/src/bip39_algorithm.rs
/* * Copyright (c) 2024 Erik Nordstrøm <erik@nordstroem.no> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
rust
ISC
7f54478e9f5947b5b146d6e5eab4c3bd224fa566
2026-01-04T20:11:15.304186Z
false
ctsrc/Pgen
https://github.com/ctsrc/Pgen/blob/7f54478e9f5947b5b146d6e5eab4c3bd224fa566/crates/pgen/src/lib.rs
crates/pgen/src/lib.rs
mod bip39_algorithm;
rust
ISC
7f54478e9f5947b5b146d6e5eab4c3bd224fa566
2026-01-04T20:11:15.304186Z
false
ctsrc/Pgen
https://github.com/ctsrc/Pgen/blob/7f54478e9f5947b5b146d6e5eab4c3bd224fa566/crates/pgen/src/main.rs
crates/pgen/src/main.rs
/* * Copyright (c) 2018, 2019, 2023, 2024 Erik Nordstrøm <erik@nordstroem.no> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE ...
rust
ISC
7f54478e9f5947b5b146d6e5eab4c3bd224fa566
2026-01-04T20:11:15.304186Z
false
ctsrc/Pgen
https://github.com/ctsrc/Pgen/blob/7f54478e9f5947b5b146d6e5eab4c3bd224fa566/crates/bip39-lexical-data/build.rs
crates/bip39-lexical-data/build.rs
use std::env; use std::fs::File; use std::io::{BufRead, BufReader, Write}; use std::path::Path; // https://doc.rust-lang.org/cargo/reference/build-scripts.html#case-study-code-generation /// Extract words from simple wordlist fn words_simple(mut f_dest: &File, const_name: &str, fname_src: &str) { write!(f_dest, "...
rust
ISC
7f54478e9f5947b5b146d6e5eab4c3bd224fa566
2026-01-04T20:11:15.304186Z
false
ctsrc/Pgen
https://github.com/ctsrc/Pgen/blob/7f54478e9f5947b5b146d6e5eab4c3bd224fa566/crates/bip39-lexical-data/src/lib.rs
crates/bip39-lexical-data/src/lib.rs
#![no_std] #![forbid(unsafe_code)] // https://doc.rust-lang.org/cargo/reference/build-scripts.html#case-study-code-generation include!(concat!(env!("OUT_DIR"), "/wordlists.rs"));
rust
ISC
7f54478e9f5947b5b146d6e5eab4c3bd224fa566
2026-01-04T20:11:15.304186Z
false
ctsrc/Pgen
https://github.com/ctsrc/Pgen/blob/7f54478e9f5947b5b146d6e5eab4c3bd224fa566/crates/eff-lexical-data/build.rs
crates/eff-lexical-data/build.rs
use std::env; use std::fs::File; use std::io::{BufRead, BufReader, Write}; use std::path::Path; // https://doc.rust-lang.org/cargo/reference/build-scripts.html#case-study-code-generation /// Extract words from the EFF wordlists fn words_eff(mut f_dest: &File, const_name: &str, fname_src: &str) { write!(f_dest, "p...
rust
ISC
7f54478e9f5947b5b146d6e5eab4c3bd224fa566
2026-01-04T20:11:15.304186Z
false
ctsrc/Pgen
https://github.com/ctsrc/Pgen/blob/7f54478e9f5947b5b146d6e5eab4c3bd224fa566/crates/eff-lexical-data/src/lib.rs
crates/eff-lexical-data/src/lib.rs
#![no_std] #![forbid(unsafe_code)] // https://doc.rust-lang.org/cargo/reference/build-scripts.html#case-study-code-generation include!(concat!(env!("OUT_DIR"), "/wordlists.rs"));
rust
ISC
7f54478e9f5947b5b146d6e5eab4c3bd224fa566
2026-01-04T20:11:15.304186Z
false
AnneKitsune/planck_ecs
https://github.com/AnneKitsune/planck_ecs/blob/b0b496643541d868cd404d168570890d579bf01c/src/lib.rs
src/lib.rs
//! A minimalist, safe and fast ECS. //! Composed of two libraries: //! * entity_component //! * world_dispatcher //! //! Planck ECS is a library that brings those two smaller parts together. //! It adds the `maintain` function to world, which takes care of cleaning up //! dead entities after running systems. pub use e...
rust
Apache-2.0
b0b496643541d868cd404d168570890d579bf01c
2026-01-04T20:18:29.373186Z
false
AnneKitsune/planck_ecs
https://github.com/AnneKitsune/planck_ecs/blob/b0b496643541d868cd404d168570890d579bf01c/examples/serde.rs
examples/serde.rs
use planck_ecs::*; use serde::Serialize; struct Animal; #[derive(Clone, Serialize)] struct Position { x: f32, y: f32, } #[derive(Serialize)] struct SerializeMe { t: &'static str, positions: Vec<Position>, } fn main() { let mut world = World::default(); let create_animals = (|animals: &mut C...
rust
Apache-2.0
b0b496643541d868cd404d168570890d579bf01c
2026-01-04T20:18:29.373186Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/stylance/src/lib.rs
stylance/src/lib.rs
//! # About stylance //! //! Stylance is a scoped CSS library for rust. //! //! Use it in conjunction with [stylance-cli](https://crates.io/crates/stylance-cli). //! //! # Usage //! //! Create a .module.css file inside your rust source directory //! ```scss //! // src/component1/style.module.css //! //! .header { //! ...
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/stylance/tests/test_import_styles.rs
stylance/tests/test_import_styles.rs
use stylance::*; #[test] fn test_import_crate_style() { import_crate_style!(style, "tests/style.module.scss"); assert_eq!(style::style1, "style1-a331da9"); assert_eq!(style::style2, "style2-a331da9"); assert_eq!(style::style3, "style3-a331da9"); assert_eq!(style::style4, "style4-a331da9"); ass...
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/stylance/tests/test_classes.rs
stylance/tests/test_classes.rs
#[test] fn test_join_classes() { use stylance::JoinClasses; assert_eq!( ( "one", Some("two"), false.then_some("three"), true.then_some("four"), &String::from("five"), Some(&String::from("six")), &("seven", "eight").join...
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/stylance/examples/usage/module.rs
stylance/examples/usage/module.rs
use stylance::import_crate_style; // Add pub if you your style module definition to be public. import_crate_style!(pub style, "examples/usage/style2.module.scss");
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/stylance/examples/usage/main.rs
stylance/examples/usage/main.rs
mod module; use stylance::{classes, import_crate_style}; use module::style as module_style; import_crate_style!(my_style, "examples/usage/style1.module.scss"); fn main() { println!( "my_style 'examples/usage/style1.module.scss' \nheader: {}", my_style::header ); println!( "module...
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/internal/stylance-macros/src/lib.rs
internal/stylance-macros/src/lib.rs
use std::{env, path::Path}; use anyhow::Context as _; use proc_macro::TokenStream; use proc_macro2::{Ident, Span}; use quote::{quote, quote_spanned}; use syn::{parse_macro_input, LitStr}; fn try_import_style_classes_with_path( manifest_path: &Path, file_path: &Path, identifier_span: Span, ) -> anyhow::Res...
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/internal/stylance-core/src/lib.rs
internal/stylance-core/src/lib.rs
mod class_name_pattern; mod parse; use std::{ borrow::Cow, fs, hash::{Hash as _, Hasher as _}, path::{Path, PathBuf}, str::FromStr, }; use anyhow::{anyhow, bail, Context}; use class_name_pattern::ClassNamePattern; use parse::{CssFragment, Global}; use serde::Deserialize; use siphasher::sip::SipHas...
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/internal/stylance-core/src/parse.rs
internal/stylance-core/src/parse.rs
use winnow::{ combinator::{alt, cut_err, delimited, fold_repeat, opt, peek, preceded, terminated}, error::{ContextError, ParseError}, stream::{AsChar, ContainsToken, Range}, token::{none_of, one_of, tag, take_till, take_until0, take_while}, PResult, Parser, }; /// ```text /// v----v inner s...
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/internal/stylance-core/src/class_name_pattern.rs
internal/stylance-core/src/class_name_pattern.rs
use std::borrow::Cow; use serde::{Deserialize, Deserializer}; #[derive(Debug, Clone, PartialEq)] pub enum Fragment { Str(String), Name, Hash, } #[derive(Debug, Clone, PartialEq)] pub struct ClassNamePattern(Vec<Fragment>); impl ClassNamePattern { pub fn apply(&self, classname: &str, hash: &str) -> S...
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/stylance-cli/src/lib.rs
stylance-cli/src/lib.rs
use std::{ borrow::Cow, collections::HashMap, fs::{self, File}, io::{BufWriter, Write}, path::Path, }; use anyhow::bail; pub use stylance_core::Config; use stylance_core::ModifyCssResult; use walkdir::WalkDir; pub fn run(manifest_dir: &Path, config: &Config) -> anyhow::Result<()> { println!("R...
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
basro/stylance-rs
https://github.com/basro/stylance-rs/blob/74321d41b1931829b93cdb6c8ae4cec44fa4cc0d/stylance-cli/src/main.rs
stylance-cli/src/main.rs
use std::{ path::{Path, PathBuf}, sync::Arc, time::Duration, }; use stylance_cli::run; use stylance_core::{load_config, Config}; use clap::Parser; use notify::{Event, RecursiveMode, Watcher}; use tokio::{sync::mpsc, task::spawn_blocking}; use tokio_stream::{Stream, StreamExt}; #[derive(Parser)] #[command(...
rust
MIT
74321d41b1931829b93cdb6c8ae4cec44fa4cc0d
2026-01-04T20:18:25.534893Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/exception.rs
src/exception.rs
//! Exception handling support (stubbed for now). use crate::diag::abort::{AbortLevel, abort}; use crate::result::ResultCode; use crate::svc; #[unsafe(no_mangle)] #[linkage = "weak"] pub(crate) unsafe extern "C" fn __nx_exception_dispatch( _reason: svc::ExceptionType, _stack_top: *mut u8, ) -> ! { // imme...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/applet.rs
src/applet.rs
//! AppletAE/AppletOE Support use crate::hbl::{AppletType, get_applet_type}; use crate::ipc::sf; use crate::result::*; use crate::service; use crate::svc; use crate::sync::{ReadGuard, RwLock}; use crate::version::{Version, get_version}; use core::sync::atomic::AtomicU64; pub use crate::service::applet::*; static AL...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/arm.rs
src/arm.rs
//! ARM support and utils use core::arch::asm; /// Represents a CPU register value (`W`, `X` or `R` value depending on the context/arch). #[derive(Copy, Clone, PartialEq, Eq, Debug, Default)] #[repr(C)] pub struct CpuRegister { /// The register value. pub reg: u64, } impl CpuRegister { /// Gets the [`Cpu...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/lib.rs
src/lib.rs
//! Userland library for Nintendo Switch homebrew (and other potential purposes), written in pure Rust and some assembly bits //! //! # Features //! //! This library covers a lot of different modules, wrappers, etc. so some of them (essentially those which can be opt-in) are separated as optional features: //! //! - `s...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/gpu.rs
src/gpu.rs
//! Graphics and GPU support and utils use ::alloc::sync::Arc; use crate::ipc::sf; use crate::mem::{alloc, wait_for_permission}; use crate::result::*; use crate::service; use crate::service::applet; use crate::service::dispdrv; use crate::service::nv; use crate::service::nv::{ErrorCode, Fd, INvDrvClient, IoctlId}; us...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
true
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/version.rs
src/version.rs
//! System version utils use crate::sync; use core::cmp; use core::fmt; /// Represents a version with major, minor and micro components #[derive(Copy, Clone, PartialEq, Eq)] pub struct Version { /// The major component pub major: u8, /// The minor component pub minor: u8, /// The micro component ...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/sync.rs
src/sync.rs
//! Synchronization support and utils use core::cell::UnsafeCell; pub mod sys; use sys::mutex::Mutex as RawMutex; use sys::rwlock::RwLock as RawRwLock; #[macro_export] macro_rules! acquire { ($x:expr) => { atomic::fence(Acquire) }; } /// Represents a type which will lock a given [`Mutex`] on creatio...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/fs.rs
src/fs.rs
//! FileSystem support use crate::ipc::sf as ipc_sf; use crate::ipc::sf::fsp::IDirectoryClient; use crate::ipc::sf::fsp::IFileClient; use crate::ipc::sf::fsp::IFileSystemClient; use crate::result::*; use crate::service; use crate::service::fsp; use crate::service::fsp::srv::IFileSystemProxyClient; use crate::sync::RwL...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
true
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/vmem.rs
src/vmem.rs
//! Virtual memory support use core::ptr::null_mut; use core::sync::atomic::AtomicPtr; use crate::sync::RwLock; use crate::result::*; use crate::svc; /// Represents a virtual region of memory, represented as pointer-sized uints. i.e. [start, end) #[derive(Copy, Clone, Default, Debug)] pub struct VirtualRegion { ...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service.rs
src/service.rs
//! Base service/named port support and wrappers use core::ffi::CStr; use sm::IUserInterfaceClient; use crate::ipc::client; use crate::ipc::sf; use crate::result::*; use crate::svc; pub mod sm; /// Represents a named port interface /// /// Interfaces which wrap named ports (see [`manage_named_port`][`svc::manage_n...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/smc.rs
src/smc.rs
//! Secure monitor support and wrappers use crate::svc; use core::mem as cmem; /// Represents the secure monitor function IDs /// /// Note that only those supported by this libraries are present in the enum... /// See [SwitchBrew](https://switchbrew.org/wiki/SMC) for all options. #[derive(Copy, Clone, PartialEq, Eq, ...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/result.rs
src/result.rs
//! Common result support use core::fmt; use core::result; use nx_derive::{Request, Response}; const MODULE_BITS: u32 = 9; const DESCRIPTION_BITS: u32 = 13; const DEFAULT_VALUE: u32 = 0; const SUCCESS_VALUE: u32 = DEFAULT_VALUE; #[inline] pub(crate) const fn pack_value(module: u32, description: u32) -> u32 { mo...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/util.rs
src/util.rs
//! Common library utilities use crate::diag::abort; use crate::diag::log; use crate::diag::log::Logger; use crate::result::*; use crate::thread; use alloc::string::String; use alloc::string::ToString; use core::fmt; use core::panic; use core::ptr; use core::str; use nx_derive::{Request, Response}; pub mod rc; #[d...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/diag.rs
src/diag.rs
//! Diagnostics (logging and aborting) support pub mod rc; pub mod abort; pub mod log;
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/rand.rs
src/rand.rs
//! Pseudo-RNG support use alloc::sync::Arc; pub use rand::{Rng, RngCore}; /// Represents a pseudo-RNG use crate::ipc::sf::Buffer; use crate::result::*; use crate::service; pub use crate::service::spl::{IRandomClient, RandomService}; use crate::sync::Mutex; impl RngCore for RandomService { fn next_u32(&mut self)...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/rrt0.rs
src/rrt0.rs
//! Initial code/entrypoint support and utils //! //! # Custom entrypoint //! //! If you wish to define your custom entrypoint, you can do so by redefining the `__nx_rrt0_entry` weak fn. //! //! Example (check [here](https://switchbrew.org/wiki/Homebrew_ABI#Entrypoint_Arguments) for more entrypoint details): //! ``` //...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/svc.rs
src/svc.rs
//! This module wraps svc calls provided by `asm.rs`. //! There is generally no function-level Safety docs, but the core requirement is that all raw pointers provided must be //! validated by the caller. use crate::arm; use crate::ipc::sf::ncm; use crate::result::*; use crate::util; use crate::util::ArrayString; use c...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
true
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/macros.rs
src/macros.rs
//! Library macros //! //! Note that all library macros are defined in this module (and exported) to easily use them all over the library pub mod diag; pub mod ipc; pub mod alloc; pub mod result; pub mod rrt0; pub mod util;
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/wait.rs
src/wait.rs
//! Sync/waiting utilities and wrappers use crate::arm; use crate::result::*; use crate::svc; /// Represents an event via a remote handle pub struct RemoteEvent { /// The remote handle pub handle: svc::Handle, } impl RemoteEvent { /// Creates a [`RemoteEvent`] from a remote handle /// /// # Argum...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/rc.rs
src/rc.rs
//! Generic library result definitions //! //! All `rc` modules in this library contain result definitions (usually related to/for the parent module) //! //! All library results have module [`RESULT_MODULE`], and their descriptions are `<mod-specific submodule> + <res-value>` //! //! For example, [`ResultNotImplemented...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/mem.rs
src/mem.rs
//! Memory (heap) support and utils use crate::result::ResultBase; use crate::svc; pub mod alloc; /// Blocks thread until the memory region specified has the permission passed /// /// # Arguments /// /// * `address`: The address to query for memory permissions /// * `permissions`: The memory permission to wait on ///...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/hbl.rs
src/hbl.rs
//! HBL (homebrew loader) ABI support and utils use atomic_enum::atomic_enum; use core::sync::atomic::AtomicU32; use core::sync::atomic::Ordering; use core::sync::atomic::Ordering::Relaxed; use crate::result::*; use crate::svc::Handle; use crate::svc::INVALID_HANDLE; use crate::sync::Mutex; use crate::sync::RwLock; u...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/elf.rs
src/elf.rs
//! ELF (aarch64) support and utils use core::sync::atomic::AtomicUsize; use core::sync::atomic::Ordering::SeqCst; use unwinding::custom_eh_frame_finder::{FrameInfo, FrameInfoKind}; pub mod mod0; pub mod rc; /// Represents ELF tags. /// Cherry picked from [valid relocation types](https://github.com/cole14/rust-elf/...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/mii.rs
src/mii.rs
//! Mii Support use crate::result::*; use crate::sync::{Mutex, MutexGuard}; pub use crate::service::mii::*; static G_STATIC_SRV: Mutex<Option<StaticService>> = Mutex::new(None); static G_DB_SRV: Mutex<Option<MiiDatabase>> = Mutex::new(None); /// Initializes the Mii service objects pub fn initialize() -> Result<()> ...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/console.rs
src/console.rs
//! Console Services /// Virtual TTY functionality /// /// The types contained are used to create a tty-like environment, that emulate an /// ANSI console (e.g. by wrapping the canvas in a [`embedded_term::TextOnGraphic`]). #[cfg(feature = "vty")] pub mod vty { use alloc::boxed::Box; use embedded_graphics_cor...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/la.rs
src/la.rs
//! Library applet support and utils use crate::arm; use crate::ipc::sf; use crate::result::*; use crate::service::applet; use crate::service::applet::ILibraryAppletAccessorClient; use crate::service::applet::ILibraryAppletCreatorClient; use crate::service::applet::{IStorageAccessorClient, IStorageClient, Storage}; us...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/socket.rs
src/socket.rs
//! Implementation of the Rust libstd TCP/UDP APIs, and re-exports of the raw bsd sockets API. use core::alloc::Layout; use core::ops::Deref; use core::ops::DerefMut; use core::sync::atomic::AtomicU16; use core::sync::atomic::AtomicUsize; use core::sync::atomic::Ordering; use alloc::alloc::Allocator; use alloc::alloc...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
true
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/input.rs
src/input.rs
//! Input utils and wrappers use rc::ResultInvalidControllerId; use crate::applet; use crate::ipc::sf; use crate::result::*; use crate::service; use crate::service::applet::AppletResourceUserId; use crate::service::hid; use crate::service::hid::AnalogStickState; use crate::service::hid::AppletResource; use crate::ser...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/ipc.rs
src/ipc.rs
//! Contains the machinery for Horizon OS's IPC interface use crate::result::*; use crate::svc; use crate::thread; use arrayvec::ArrayVec; use core::mem; use core::ptr; pub mod rc; #[derive(Copy, Clone, PartialEq, Eq, Debug, Default)] #[repr(u8)] pub enum CommandProtocol { #[default] Cmif, Tipc, } #[der...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/thread.rs
src/thread.rs
//! Threading support and wrappers use ::alloc::boxed::Box; use ::alloc::string::String; use ::alloc::string::ToString; use ::alloc::sync::Arc; use imp::LibNxThreadVars; use crate::diag::abort; use crate::diag::abort::AbortLevel; use crate::result::*; use crate::svc; use crate::util; use core::cell::UnsafeCell; use c...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
true
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/util/rc.rs
src/util/rc.rs
//! Util-specific result definitions use crate::rc; /// Result Submodule ID for the parent module pub const RESULT_SUBMODULE: u32 = 300; result_define_subgroup!(rc::RESULT_MODULE, RESULT_SUBMODULE => { InvalidPointer: 1, InvalidSize: 2, InvalidUtf8Conversion: 3, InvalidUtf16Conversion: 4 });
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/applet.rs
src/service/applet.rs
use crate::hbl::AppletType; use crate::ipc::sf::sm; use crate::result::*; use crate::{hbl, service}; pub use crate::ipc::sf::applet::*; ipc_client_define_client_default!(AllSystemAppletProxiesService); impl IAllSystemAppletProxiesClient for AllSystemAppletProxiesService {} impl service::IService for AllSystemAppletP...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/sm.rs
src/service/sm.rs
use core::ffi::CStr; use crate::ipc; use crate::ipc::sf; use crate::result::*; use crate::service; use crate::version; pub use crate::ipc::sf::sm::*; impl service::INamedPort for UserInterface { fn get_name() -> &'static CStr { c"sm:" } fn post_initialize(&mut self) -> Result<()> { if ve...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/spl.rs
src/service/spl.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::spl::*; ipc_client_define_client_default!(RandomService); impl IRandomClient for RandomService {} impl service::IService for RandomService { fn get_name() -> sm::ServiceName { sm::ServiceName::new("csrng") } ...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/dispdrv.rs
src/service/dispdrv.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::dispdrv::*; /// This one gets special pribileges of not being suffixed with `Service` as it is the only implementor of `IService` that /// can be received from a call to a different service. impl service::IService for HOSBinderD...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/psm.rs
src/service/psm.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::psm::*; ipc_client_define_client_default!(PsmService); impl IPsmClient for PsmService {} impl service::IService for PsmService { fn get_name() -> sm::ServiceName { sm::ServiceName::new("psm") } fn as_domai...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/hid.rs
src/service/hid.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::hid::*; ipc_client_define_client_default!(HidService); ipc_client_define_client_default!(HidSysService); impl IHidClient for HidService {} impl IHidSysClient for HidSysService {} impl service::IService for HidService { fn ...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/nfp.rs
src/service/nfp.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::nfp::*; ipc_client_define_client_default!(UserManagerService); impl IUserManagerClient for UserManagerService {} ipc_client_define_client_default!(DebugManagerService); impl IDebugManagerClient for DebugManagerService {} ipc_c...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/lr.rs
src/service/lr.rs
use super::*; use crate::service; pub use crate::ipc::sf::lr::*; ipc_client_define_client_default!(LocationResolverManagerService); impl ILocationResolverManagerClient for LocationResolverManagerService {} impl service::IService for LocationResolverManagerService { fn get_name() -> sm::ServiceName { sm::...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/ncm.rs
src/service/ncm.rs
use super::*; use crate::service; pub use crate::ipc::sf::ncm::*; ipc_client_define_client_default!(ContentManagerService); impl IContentManagerClient for ContentManagerService {} impl service::IService for ContentManagerService { fn get_name() -> sm::ServiceName { sm::ServiceName::new("ncm") } ...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/bsd.rs
src/service/bsd.rs
use crate::ipc::sf::sm; use crate::result::Result; use crate::service; pub use crate::ipc::sf::bsd::*; ipc_client_define_client_default!(SystemBsdService); impl IBsdClient for SystemBsdService {} impl service::IService for SystemBsdService { fn get_name() -> sm::ServiceName { sm::ServiceName::new("bsd:s"...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/psc.rs
src/service/psc.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::psc::*; ipc_client_define_client_default!(PmService); impl IPmClient for PmService {} impl service::IService for PmService { fn get_name() -> sm::ServiceName { sm::ServiceName::new("psc:m") } fn as_domain()...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/pm.rs
src/service/pm.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::pm::*; ipc_client_define_client_default!(InformationInterfaceService); impl IInformationInterfaceClient for InformationInterfaceService {} impl service::IService for InformationInterfaceService { fn get_name() -> sm::Servic...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/ldr.rs
src/service/ldr.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::ldr::*; ipc_client_define_client_default!(ShellInterfaceService); impl IShellInterfaceClient for ShellInterfaceService {} impl service::IService for ShellInterfaceService { fn get_name() -> sm::ServiceName { sm::Ser...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/mii.rs
src/service/mii.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::mii::*; ipc_client_define_client_default!(StaticService); impl IStaticClient for StaticService {} impl service::IService for StaticService { fn get_name() -> sm::ServiceName { sm::ServiceName::new("mii:e") } ...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/usb.rs
src/service/usb.rs
pub use crate::ipc::sf::usb::*; /// "usb:hs" service interface definitions. pub mod hs;
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/audio.rs
src/service/audio.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::audio::*; ipc_client_define_client_default!(AudioOutManagerService); impl IAudioOutManagerClient for AudioOutManagerService {} impl service::IService for AudioOutManagerService { fn get_name() -> sm::ServiceName { s...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/lm.rs
src/service/lm.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::lm::*; ipc_client_define_client_default!(LoggingService); impl ILoggingClient for LoggingService {} impl service::IService for LoggingService { fn get_name() -> sm::ServiceName { sm::ServiceName::new("lm") } ...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/nv.rs
src/service/nv.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::nv::*; ipc_client_define_client_default!(ApplicationNvDrvService); impl INvDrvClient for ApplicationNvDrvService {} impl service::IService for ApplicationNvDrvService { fn get_name() -> sm::ServiceName { sm::Servic...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/fatal.rs
src/service/fatal.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::fatal::*; ipc_client_define_client_default!(FatalService); impl IFatalClient for FatalService {} impl service::IService for FatalService { fn get_name() -> sm::ServiceName { sm::ServiceName::new("fatal:u") } ...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/set.rs
src/service/set.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::set::*; ipc_client_define_client_default!(SystemSettingsService); impl ISystemSettingsClient for SystemSettingsService {} impl service::IService for SystemSettingsService { fn get_name() -> sm::ServiceName { sm::Se...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/fsp.rs
src/service/fsp.rs
pub use crate::ipc::sf::fsp as fsp_sf; /// "fsp-srv" service definitions. pub mod srv;
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/vi.rs
src/service/vi.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::vi::*; ipc_client_define_client_default!(ApplicationDisplayRootService); ipc_client_define_client_default!(ManagerDisplayRootService); ipc_client_define_client_default!(SystemDisplayRootService); impl IApplicationDisplayRootCli...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/usb/hs.rs
src/service/usb/hs.rs
use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::usb::hs::*; ipc_client_define_client_default!(ClientRootSessionService); impl IClientRootSessionClient for ClientRootSessionService {} impl service::IService for ClientRootSessionService { fn get_name() -> sm::ServiceName {...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/service/fsp/srv.rs
src/service/fsp/srv.rs
use crate::ipc::sf; use crate::ipc::sf::sm; use crate::result::*; use crate::service; pub use crate::ipc::sf::fsp::srv::*; ipc_client_define_client_default!(FileSystemProxyService); impl IFileSystemProxyClient for FileSystemProxyService {} impl service::IService for FileSystemProxyService { fn get_name() -> sm::...
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false
aarch64-switch-rs/nx
https://github.com/aarch64-switch-rs/nx/blob/b365c1baa4c4472fe604f4ab9646440d23c3bd9c/src/macros/sync.rs
src/macros/sync.rs
#[macro_export] macro_rules! acquire { ($x:expr) => { ::core::sync::atomic::fence(Acquire) }; }
rust
MIT
b365c1baa4c4472fe604f4ab9646440d23c3bd9c
2026-01-04T20:16:15.900894Z
false