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 |
|---|---|---|---|---|---|---|---|---|
helsing-ai/dson | https://github.com/helsing-ai/dson/blob/eef903f2120ed8415e5f9d1792d10c72c387f533/examples/transaction_sync.rs | examples/transaction_sync.rs | use dson::{
CausalDotStore, Identifier, OrMap,
crdts::{mvreg::MvRegValue, snapshot::ToValue},
transaction::CrdtValue,
};
fn main() {
// Simulate a distributed system with 3 replicas
let mut replica_a = CausalDotStore::<OrMap<String>>::default();
let mut replica_b = CausalDotStore::<OrMap<String... | rust | Apache-2.0 | eef903f2120ed8415e5f9d1792d10c72c387f533 | 2026-01-04T20:19:34.202571Z | false |
helsing-ai/dson | https://github.com/helsing-ai/dson/blob/eef903f2120ed8415e5f9d1792d10c72c387f533/examples/transaction_nested.rs | examples/transaction_nested.rs | use dson::{
CausalDotStore, Identifier, OrMap,
crdts::{mvreg::MvRegValue, snapshot::ToValue},
transaction::CrdtValue,
};
fn main() {
let mut store = CausalDotStore::<OrMap<String>>::default();
let id = Identifier::new(0, 0);
// Create nested data structure
{
let mut tx = store.tran... | rust | Apache-2.0 | eef903f2120ed8415e5f9d1792d10c72c387f533 | 2026-01-04T20:19:34.202571Z | false |
helsing-ai/dson | https://github.com/helsing-ai/dson/blob/eef903f2120ed8415e5f9d1792d10c72c387f533/examples/transaction_basic.rs | examples/transaction_basic.rs | use dson::{
CausalDotStore, Identifier, OrMap,
crdts::{mvreg::MvRegValue, snapshot::ToValue},
transaction::CrdtValue,
};
fn main() {
// Create a DSON store
let mut store = CausalDotStore::<OrMap<String>>::default();
let id = Identifier::new(0, 0);
// Write some data using the transaction A... | rust | Apache-2.0 | eef903f2120ed8415e5f9d1792d10c72c387f533 | 2026-01-04T20:19:34.202571Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/lib.rs | src/lib.rs | //! # `rbxcloud` - CLI & SDK for Roblox Open Cloud APIs
//!
//! `rbxcloud` is both a CLI and an SDK for the Roblox
//! Open Cloud APIs. For in-depth documentation on
//! both the CLI and SDK functionality, visit the
//! [documentation](https://sleitnick.github.io/rbxcloud/)
//! website.
//!
//! ## Usage
//!
//! Add `rb... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/main.rs | src/main.rs | mod cli;
use clap::Parser;
use cli::Cli;
use std::process;
#[tokio::main]
async fn main() {
let cli_args = Cli::parse();
match cli_args.run().await {
Ok(str) => {
if let Some(s) = str {
println!("{s}");
}
}
Err(err) => {
eprintln!("{... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/error.rs | src/rbx/error.rs | //! Error handling.
use crate::rbx::v1::ds_error::DataStoreErrorResponse;
/// `rbxcloud` error.
#[derive(Debug)]
pub enum Error {
/// An error occurred regarding reading a file from the file system.
FileLoadError(String),
/// Failed to infer asset type.
InferAssetTypeError(String),
/// A non-OK H... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/types.rs | src/rbx/types.rs | use serde::{Deserialize, Serialize};
/// Represents the UniverseId of a Roblox experience.
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
pub struct UniverseId(pub u64);
/// Represents the PlaceId of a specific place within a Roblox experience.
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
pub struct P... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/util.rs | src/rbx/util.rs | use base64::{engine::general_purpose::STANDARD, Engine as _};
use md5::{Digest, Md5};
pub type QueryString = Vec<(&'static str, String)>;
#[inline]
pub fn get_checksum_base64(data: &String) -> String {
let mut md5_hash = Md5::new();
md5_hash.update(data.as_bytes());
STANDARD.encode(md5_hash.finalize())
}
| rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/mod.rs | src/rbx/mod.rs | //! Access into Roblox APIs.
//!
//! Most usage should go through the `RbxCloud` struct.
pub mod error;
pub mod types;
pub(crate) mod util;
pub mod v1;
pub mod v2;
| rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v1/ds_error.rs | src/rbx/v1/ds_error.rs | use std::fmt;
use serde::Deserialize;
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct DataStoreErrorResponse {
pub error: String,
pub message: String,
pub error_details: Vec<DataStoreErrorDetail>,
}
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct Da... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v1/messaging.rs | src/rbx/v1/messaging.rs | //! Low-level Messaging API operations.
use serde_json::json;
use crate::rbx::error::Error;
use crate::rbx::v1::UniverseId;
/// Message publishing parameters.
pub struct PublishMessageParams {
pub api_key: String,
pub universe_id: UniverseId,
pub topic: String,
pub message: String,
}
/// Publish a me... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v1/datastore.rs | src/rbx/v1/datastore.rs | //! Low-level DataStore API operations.
//!
//! Typically, these operations should be consumed through the `RbxExperience`
//! struct, obtained through the `RbxCloud` struct.
use reqwest::Response;
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use crate::rbx::{
error::Error,
util::{get_checksum_b... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v1/mod.rs | src/rbx/v1/mod.rs | //! Access into Roblox v1 APIs.
//!
//! Most usage should go through the `RbxCloud` struct.
pub mod assets;
pub mod datastore;
pub(crate) mod ds_error;
pub mod experience;
pub mod messaging;
pub mod ordered_datastore;
use crate::rbx::error;
use assets::{ArchiveAssetParams, AssetInfo, GetAssetOperationParams, GetAssetP... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v1/experience.rs | src/rbx/v1/experience.rs | //! Low-level Experience API operations.
use std::fmt;
use serde::{Deserialize, Serialize};
use crate::rbx::error::Error;
use crate::rbx::v1::{PlaceId, UniverseId};
/// The version type of a place publish operation.
#[derive(Debug, Clone)]
pub enum PublishVersionType {
/// Place is saved as the most-recent versi... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v1/ordered_datastore.rs | src/rbx/v1/ordered_datastore.rs | //! Low-level OrderedDataStore API operations.
//!
//! Typically, these operations should be consumed through the `RbxExperience`
//! struct, obtained through the `RbxCloud` struct.
//!
use reqwest::Response;
use serde::Serialize;
use serde::{de::DeserializeOwned, Deserialize};
use serde_json::json;
use crate::rbx::v... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v1/assets.rs | src/rbx/v1/assets.rs | use std::{fs, path::Path};
use crate::rbx::{error::Error, util::QueryString};
use reqwest::{multipart, Response};
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use serde_json::json;
#[derive(Deserialize, Serialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct AssetUserCreator {
pub us... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/user.rs | src/rbx/v2/user.rs | use serde::{Deserialize, Serialize};
use crate::rbx::{error::Error, types::RobloxUserId, util::QueryString};
use super::http_err::handle_http_err;
pub struct GetUserParams {
pub api_key: String,
pub user_id: RobloxUserId,
}
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE"... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/inventory.rs | src/rbx/v2/inventory.rs | use serde::{Deserialize, Serialize};
use crate::rbx::{error::Error, types::RobloxUserId, util::QueryString};
use super::http_err::handle_http_err;
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct ListInventoryItemsParams {
pub api_key: String,
pub user_id: RobloxUserId,
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/place.rs | src/rbx/v2/place.rs | use super::http_err::handle_http_err;
use crate::rbx::{
error::Error,
types::{PlaceId, UniverseId},
util::QueryString,
};
use serde::{Deserialize, Serialize};
pub struct GetPlaceParams {
pub api_key: String,
pub universe_id: UniverseId,
pub place_id: PlaceId,
}
#[derive(Deserialize, Serialize,... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/group.rs | src/rbx/v2/group.rs | use serde::{Deserialize, Serialize};
use crate::rbx::{error::Error, types::GroupId, util::QueryString};
use super::http_err::handle_http_err;
impl std::fmt::Display for GroupId {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}
pub struct GetGroupParams {
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/notification.rs | src/rbx/v2/notification.rs | use std::collections::HashMap;
use serde::{Deserialize, Serialize};
use crate::rbx::{error::Error, types::RobloxUserId};
use super::http_err::handle_http_err;
#[derive(Deserialize, Serialize, Debug)]
pub enum NotificationType {
TypeUnspecified,
Moment,
}
impl std::fmt::Display for NotificationType {
fn... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/user_restriction.rs | src/rbx/v2/user_restriction.rs | use chrono::{DateTime, SecondsFormat, Utc};
use serde::{Deserialize, Serialize};
use crate::rbx::{
error::Error,
types::{PlaceId, RobloxUserId, UniverseId},
util::QueryString,
};
use super::http_err::handle_http_err;
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct G... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/subscription.rs | src/rbx/v2/subscription.rs | use serde::{Deserialize, Serialize};
use crate::rbx::{error::Error, types::UniverseId, util::QueryString};
use super::http_err::handle_http_err;
#[derive(Debug, Clone, Copy, clap::ValueEnum)]
pub enum SubscriptionView {
Basic,
Full,
}
impl std::fmt::Display for SubscriptionView {
fn fmt(&self, f: &mut s... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/mod.rs | src/rbx/v2/mod.rs | //! Access into Roblox v2 APIs.
//!
//! Most usage should go through the `Client` struct.
use inventory::{InventoryItems, ListInventoryItemsParams};
use luau_execution::{
CreateLuauExecutionTaskParams, GetLuauExecutionSessionTaskLogsParams,
GetLuauExecutionSessionTaskParams, LuauExecutionSessionTask, LuauExecu... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/universe.rs | src/rbx/v2/universe.rs | use serde::{Deserialize, Serialize};
use crate::rbx::{error::Error, types::UniverseId, util::QueryString};
use super::http_err::handle_http_err;
#[derive(Deserialize, Serialize, Debug)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum UniverseVisibility {
VisibilityUnspecified,
Public,
Private,
}
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/luau_execution.rs | src/rbx/v2/luau_execution.rs | use serde::{Deserialize, Serialize};
use serde_json::Value;
use crate::rbx::{
error::Error,
types::{PlaceId, UniverseId},
util::QueryString,
};
use super::http_err::handle_http_err;
#[derive(Debug)]
pub struct CreateLuauExecutionTaskParams {
pub api_key: String,
pub universe_id: UniverseId,
p... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/rbx/v2/http_err.rs | src/rbx/v2/http_err.rs | use crate::rbx::error::Error;
pub fn handle_http_err<T>(code: u16) -> Result<T, Error> {
match code {
400 => Err(Error::HttpStatusError {
code,
msg: "invalid argument".to_string(),
}),
403 => Err(Error::HttpStatusError {
code,
msg: "permission... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/notification_cli.rs | src/cli/notification_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{
types::{RobloxUserId, UniverseId},
v2::Client,
};
#[derive(Debug, Subcommand)]
pub enum NotificationCommands {
/// Send a notification to a user
Send {
/// Universe ID
#[clap(short, long, value_parser)]
universe_id: u64,
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/group_cli.rs | src/cli/group_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{types::GroupId, v2::Client};
#[derive(Debug, Subcommand)]
pub enum GroupCommands {
/// Get info about the group
Get {
/// Group ID
#[clap(short, long, value_parser)]
group_id: u64,
/// Pretty-print the JSON response
#[cl... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/place_cli.rs | src/cli/place_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{
types::{PlaceId, UniverseId},
v2::{place::UpdatePlaceInfo, Client},
};
#[derive(Debug, Subcommand)]
pub enum PlaceCommands {
/// Get Place information
Get {
/// Universe ID
#[clap(short, long, value_parser)]
universe_id: u64,
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/luau_execution_cli.rs | src/cli/luau_execution_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{
types::{PlaceId, UniverseId},
v2::{luau_execution::LuauExecutionTaskLogView, Client},
};
use tokio::fs;
#[derive(Debug, Subcommand)]
pub enum LuauExecutionCommands {
/// Executes Luau code on Roblox
Execute {
/// Universe ID of the experience
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/ordered_datastore_cli.rs | src/cli/ordered_datastore_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{
types::UniverseId,
v1::{
OrderedDataStoreCreateEntry, OrderedDataStoreEntry, OrderedDataStoreIncrementEntry,
OrderedDataStoreListEntries, OrderedDataStoreUpdateEntry, RbxCloud,
},
};
#[derive(Debug, Subcommand)]
pub enum OrderedDataStoreCom... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/user_restriction_cli.rs | src/cli/user_restriction_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{
types::{PlaceId, RobloxUserId, UniverseId},
v2::{Client, UserRestrictionParams},
};
#[derive(Debug, Subcommand)]
pub(crate) enum UserRestrictionCommands {
/// Get user restriction information
Get {
/// Universe ID
#[clap(short, long, va... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/messaging_cli.rs | src/cli/messaging_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{types::UniverseId, v1::RbxCloud};
#[derive(Debug, Subcommand)]
pub enum MessagingCommands {
/// Publish a message
Publish {
/// Message topic
#[clap(short, long, value_parser)]
topic: String,
/// Message to send
#[clap(... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/user_cli.rs | src/cli/user_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{
types::RobloxUserId,
v2::{
user::{UserThumbnailFormat, UserThumbnailShape, UserThumbnailSize},
Client,
},
};
#[derive(Debug, Subcommand)]
pub enum UserCommands {
/// Get user information
Get {
/// User ID
#[clap(shor... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/assets_cli.rs | src/cli/assets_cli.rs | use std::path::Path;
use clap::{Args, Subcommand};
use rbxcloud::rbx::{
error::Error,
v1::{
assets::{
AssetCreation, AssetCreationContext, AssetCreator, AssetGroupCreator, AssetType,
AssetUserCreator,
},
ArchiveAsset, CreateAsset, GetAsset, GetAssetOperation, Rb... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/universe_cli.rs | src/cli/universe_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{
types::UniverseId,
v2::{universe::UpdateUniverseInfo, Client},
};
#[derive(Debug, Subcommand)]
pub enum UniverseCommands {
/// Get universe information
Get {
/// Universe ID
#[clap(short, long, value_parser)]
universe_id: u64,
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/mod.rs | src/cli/mod.rs | mod assets_cli;
mod datastore_cli;
mod experience_cli;
mod group_cli;
mod inventory_cli;
mod luau_execution_cli;
mod messaging_cli;
mod notification_cli;
mod ordered_datastore_cli;
mod place_cli;
mod subscription_cli;
mod universe_cli;
mod user_cli;
mod user_restriction_cli;
use clap::{Parser, Subcommand};
use invento... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/experience_cli.rs | src/cli/experience_cli.rs | use clap::{Args, Subcommand, ValueEnum};
use rbxcloud::rbx::{
types::{PlaceId, UniverseId},
v1::{PublishVersionType, RbxCloud},
};
#[derive(Debug, Subcommand)]
pub enum ExperienceCommands {
/// Publish an experience
Publish {
/// Filename (full or relative) of the RBXL file
#[clap(shor... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/inventory_cli.rs | src/cli/inventory_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{types::RobloxUserId, v2::Client};
#[derive(Debug, Subcommand)]
pub enum InventoryCommands {
/// List inventory items for a given user
List {
/// Roblox user ID
#[clap(short, long, value_parser)]
user_id: u64,
/// Pretty-print th... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/datastore_cli.rs | src/cli/datastore_cli.rs | use clap::{Args, Subcommand, ValueEnum};
use rbxcloud::rbx::{
types::{ReturnLimit, RobloxUserId, UniverseId},
v1::{
DataStoreDeleteEntry, DataStoreGetEntry, DataStoreGetEntryVersion, DataStoreIncrementEntry,
DataStoreListEntries, DataStoreListEntryVersions, DataStoreListStores, DataStoreSetEntr... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/src/cli/subscription_cli.rs | src/cli/subscription_cli.rs | use clap::{Args, Subcommand};
use rbxcloud::rbx::{
types::UniverseId,
v2::{subscription::SubscriptionView, Client},
};
#[derive(Debug, Subcommand)]
pub enum SubscriptionCommands {
/// Get information about a subscription
Get {
/// Universe ID
#[clap(short, long, value_parser)]
u... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/examples/publish-message.rs | examples/publish-message.rs | use rbxcloud::rbx::{error::Error, types::UniverseId, v1::RbxCloud};
async fn publish_message() -> Result<(), Error> {
// Inputs:
let api_key = "MY_API_KEY";
let universe_id = 9876543210;
let topic = "MyTopic";
let message = "Hello, this is my message";
// Define RbxCloud Messaging instance:
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/examples/group-get-shout.rs | examples/group-get-shout.rs | use rbxcloud::rbx::{error::Error, types::GroupId, v2::Client};
async fn get_group_shout() -> Result<String, Error> {
// Inputs:
let api_key = "MY_API_KEY";
let group_id = 9876543210;
let client = Client::new(api_key);
let group = client.group(GroupId(group_id));
// Get the shout's content:
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/examples/publish-place.rs | examples/publish-place.rs | use rbxcloud::rbx::{
types::{PlaceId, UniverseId},
v1::{PublishVersionType, RbxCloud},
};
#[tokio::main]
async fn main() {
// Inputs:
let api_key = "MY_API_KEY";
let universe_id = 9876543210;
let place_id = 1234567890;
let filename = "my_experience.rbxl";
let publish_version_type = Publ... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/examples/user-info.rs | examples/user-info.rs | use rbxcloud::rbx::{
error::Error,
types::RobloxUserId,
v2::{user::GetUserResponse, Client},
};
async fn user_info() -> Result<GetUserResponse, Error> {
// Inputs:
let api_key = "MY_API_KEY";
let user_id = 308165;
let client = Client::new(api_key);
let user_client = client.user();
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/examples/datastore-get-entry.rs | examples/datastore-get-entry.rs | use rbxcloud::rbx::{
types::UniverseId,
v1::{DataStoreGetEntry, RbxCloud},
};
#[tokio::main]
async fn main() {
// Inputs:
let api_key = "MY_API_KEY";
let universe_id = 9876543210;
let datastore_name = String::from("my_datastore");
let key = String::from("my_key");
// Define RbxCloud Da... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/examples/restart-servers.rs | examples/restart-servers.rs | use rbxcloud::rbx::{error::Error, types::UniverseId, v2::Client};
async fn restart_servers() -> Result<(), Error> {
// Inputs:
let api_key = "MY_API_KEY";
let universe_id = 9876543210;
let client = Client::new(api_key);
let universe_client = client.universe(UniverseId(universe_id));
universe_... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
Sleitnick/rbxcloud | https://github.com/Sleitnick/rbxcloud/blob/251d8c40f6267f49217af3034eb91718a90c3c4c/examples/send-notification.rs | examples/send-notification.rs | use std::collections::HashMap;
use rbxcloud::rbx::{
error::Error,
types::{RobloxUserId, UniverseId},
v2::{
notification::{
JoinExperience, Notification, NotificationPayload, NotificationResponse,
NotificationSource, NotificationType, Parameter,
},
Client,
... | rust | MIT | 251d8c40f6267f49217af3034eb91718a90c3c4c | 2026-01-04T20:19:38.803139Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app.rs | src/app.rs | use crate::{
app::{
components::{AboutSection, TinyWaveFormIcon},
routes::{
admin::{self, AdminWrapper},
custom,
index::Home,
issue,
},
},
error_template::{AppError, ErrorTemplate},
Username,
};
use leptos::{either::Either, logging:... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/session_store.rs | src/session_store.rs | use async_trait::async_trait;
use sqlx::MySqlPool;
use time::OffsetDateTime;
use tower_sessions_core::{
session::{Id, Record},
session_store, ExpiredDeletion, SessionStore,
};
/// A MySQL session store.
#[derive(Clone, Debug)]
pub struct MySqlStore {
pool: MySqlPool,
}
impl MySqlStore {
pub fn new(poo... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/lib.rs | src/lib.rs | #![recursion_limit = "256"]
pub mod app;
#[cfg(feature = "ssr")]
pub mod atom_feed;
#[cfg(feature = "ssr")]
pub mod auth;
pub mod error_template;
pub mod issue_date;
#[cfg(feature = "ssr")]
pub mod markdown;
#[cfg(feature = "ssr")]
pub mod oauth;
#[cfg(feature = "ssr")]
pub mod session_store;
pub mod sql;
#[cfg(featur... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/atom_feed.rs | src/atom_feed.rs | use crate::state::AppState;
use atom_syndication::*;
use axum::{
extract::State, http::header, response::IntoResponse,
};
use serde::{Deserialize, Serialize};
pub async fn atom_feed(
State(app_state): State<AppState>,
) -> impl IntoResponse {
use atom_syndication::Feed;
let issues: Vec<SqlIssueShort> ... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/state.rs | src/state.rs | use axum::extract::FromRef;
use leptos::prelude::LeptosOptions;
use leptos_axum::AxumRouteListing;
// use leptos_router::RouteListing;
use sqlx::MySqlPool;
/// This takes advantage of Axum's SubStates
/// feature by deriving FromRef. This is the only
/// way to have more than one item in Axum's
/// State. Leptos requi... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/sql.rs | src/sql.rs | use leptos::prelude::*;
use serde::{Deserialize, Serialize};
#[cfg(feature = "ssr")]
use sqlx::MySqlPool;
#[cfg(feature = "ssr")]
use std::time::Duration;
#[cfg(feature = "ssr")]
use crate::Username;
#[cfg(feature = "ssr")]
pub fn pool() -> Result<MySqlPool, ServerFnError> {
use_context::<MySqlPool>().ok_or_else(... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/oauth.rs | src/oauth.rs | use axum::{
extract::Query,
http::StatusCode,
response::{IntoResponse, Redirect},
routing::get,
Router,
};
use axum_login::tower_sessions::Session;
use oauth2::CsrfToken;
use serde::Deserialize;
use crate::{
auth::NEXT_URL_KEY,
state::AppState,
users::{AuthSession, Credentials},
};
pub... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/users.rs | src/users.rs | use async_trait::async_trait;
use axum::http::header::{AUTHORIZATION, USER_AGENT};
use axum_login::{AuthUser, AuthnBackend, UserId};
use oauth2::{
basic::{BasicClient, BasicRequestTokenError},
reqwest::{async_http_client, AsyncHttpClientError},
url::Url,
AuthorizationCode, CsrfToken, TokenResponse,
};
u... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/auth.rs | src/auth.rs | use axum::{
http::StatusCode,
response::{IntoResponse, Redirect},
routing::{get, post},
Form, Router,
};
use axum_login::tower_sessions::Session;
use serde::Deserialize;
use crate::{
oauth::CSRF_STATE_KEY, state::AppState,
users::AuthSession,
};
pub const NEXT_URL_KEY: &str = "auth.next-url";
... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/markdown.rs | src/markdown.rs | #[cfg(feature = "ssr")]
use comrak::plugins::syntect::SyntectAdapterBuilder;
#[cfg(feature = "ssr")]
use comrak::{
markdown_to_html_with_plugins, ComrakPlugins, Options,
};
use leptos::prelude::*;
#[cfg(feature = "ssr")]
use std::io::Cursor;
#[cfg(feature = "ssr")]
use syntect::highlighting::ThemeSet;
#[cfg(featur... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/error_template.rs | src/error_template.rs | use http::status::StatusCode;
use leptos::prelude::*;
use thiserror::Error;
#[derive(Clone, Debug, Error)]
pub enum AppError {
#[error("Not Found")]
NotFound,
}
impl AppError {
pub fn status_code(&self) -> StatusCode {
match self {
AppError::NotFound => StatusCode::NOT_FOUND,
}... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/main.rs | src/main.rs | #![recursion_limit = "512"]
use axum::{
body::Body as AxumBody,
extract::{Path, State},
http::Request,
response::{IntoResponse, Response},
routing::get,
};
use axum_login::{
tower_sessions::{
cookie::SameSite, Expiry, SessionManagerLayer,
},
AuthManagerLayerBuilder,
};
use lepto... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/issue_date.rs | src/issue_date.rs | use time::format_description::FormatItem;
use time::macros::format_description;
use time::Date;
pub const ISSUE_DATE_FORMAT: &[FormatItem<'_>] =
format_description!("[year]-[month]-[day]");
/// takes a "2024-02-12-some-slug" and returns the
/// date portion
pub fn parse_issue_date_from_slug(
input: &str,
) ->... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/components.rs | src/app/components.rs | use leptos::prelude::*;
#[component]
pub fn AboutSection(
#[prop(into, default = "".to_string())] class: String,
) -> impl IntoView {
let (is_expanded, set_is_expanded) = signal(false);
view! {
<section class=class>
<h2 class="flex items-center font-mono text-sm font-medium leading-7 t... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes.rs | src/app/routes.rs | use leptos::prelude::*;
pub mod admin;
pub mod custom;
pub mod index;
pub mod issue;
#[component]
fn PauseIcon(
#[prop(into, default = "".to_string())] class: String,
) -> impl IntoView {
view! {
<svg aria-hidden="true" viewBox="0 0 10 10" class=class>
<path
fillRule="evenod... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/index.rs | src/app/routes/index.rs | use crate::app::components::Container;
use crate::app::issue::PROSE;
use leptos::{either::Either, prelude::*};
use leptos_meta::*;
use serde::{Deserialize, Serialize};
use std::ops::Not;
#[component]
fn PauseIcon(
#[prop(into, default = "".to_string())] class: String,
) -> impl IntoView {
view! {
<svg ... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin.rs | src/app/routes/admin.rs | use leptos::prelude::*;
use leptos_router::components::{Outlet, A};
pub mod crate_release;
pub mod devlog;
pub mod educational;
pub mod github;
pub mod image;
pub mod issue;
pub mod issues;
pub mod showcase;
#[component]
pub fn AdminHomepage() -> impl IntoView {
view! {
<div class="mx-auto max-w-7xl sm:px... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/issue.rs | src/app/routes/issue.rs | use crate::app::components::{
Container, DescriptionColor, Divider,
DividerWithDescription,
};
use itertools::Itertools;
use leptos::{either::{Either, EitherOf4}, prelude::*};
use leptos_meta::*;
use leptos_router::hooks::use_params_map;
use serde::{Deserialize, Serialize};
#[cfg(feature = "ssr")]
use sqlx::typ... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | true |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/custom.rs | src/app/routes/custom.rs | use std::ops::Not;
use crate::app::components::{Container, Divider};
use futures::future::join4;
use leptos::{
either::{Either, EitherOf4},
prelude::*,
};
use leptos_router::hooks::use_params_map;
use serde::{Deserialize, Serialize};
#[derive(Clone, Serialize, Deserialize)]
pub struct Issue {
/// The titl... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/issues.rs | src/app/routes/admin/issues.rs | use leptos::{either::Either, prelude::*};
use serde::{Deserialize, Serialize};
#[component]
pub fn Issues() -> impl IntoView {
let create_draft_issue: ServerAction<CreateDraftIssue> =
ServerAction::new();
let issues =
Resource::new(move || {}, |_| fetch_issues());
view! {
<div class... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/image.rs | src/app/routes/admin/image.rs | use crate::app::components::Divider;
#[cfg(feature = "ssr")]
use crate::app::server_fn::error::NoCustomError;
use leptos::{
either::{Either, EitherOf3},
prelude::*,
};
use serde::{Deserialize, Serialize};
#[cfg(feature = "ssr")]
use tracing::error;
#[component]
pub fn Image() -> impl IntoView {
let add_ima... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/crate_release.rs | src/app/routes/admin/crate_release.rs | use crate::app::components::Divider;
use futures::future::join;
use leptos::{either::EitherOf3, prelude::*};
use serde::{Deserialize, Serialize};
pub mod id;
#[server]
async fn add_crate_release(
title: String,
url: String,
discord_url: String,
description: String,
posted_date: String,
) -> Result<... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/issue.rs | src/app/routes/admin/issue.rs | use crate::app::components::Divider;
use leptos::{either::Either, prelude::*};
use leptos_router::hooks::use_params_map;
use serde::{Deserialize, Serialize};
#[component]
pub fn Issue() -> impl IntoView {
let params = use_params_map();
let issue = Resource::new(
move || {
params.with(|p| p.... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | true |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/devlog.rs | src/app/routes/admin/devlog.rs | use crate::app::components::Divider;
use futures::future::join;
use leptos::{either::EitherOf3, prelude::*};
use serde::{Deserialize, Serialize};
pub mod id;
#[server]
async fn add_devlog(
title: String,
video_url: String,
post_url: String,
discord_url: String,
description: String,
posted_date:... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/educational.rs | src/app/routes/admin/educational.rs | use crate::app::components::Divider;
use futures::future::join;
use leptos::{either::EitherOf3, prelude::*};
use serde::{Deserialize, Serialize};
pub mod id;
#[server]
async fn add_educational(
title: String,
video_url: String,
post_url: String,
discord_url: String,
description: String,
posted_... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/github.rs | src/app/routes/admin/github.rs | use crate::app::components::Divider;
use crate::app::server_fn::error::NoCustomError;
use leptos::{either::EitherOf3, prelude::*};
use serde::{Deserialize, Serialize};
#[component]
pub fn GitHub() -> impl IntoView {
let select_new_github_issues: ServerAction<
SelectNewGithubIssues,
> = ServerAction::ne... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/showcase.rs | src/app/routes/admin/showcase.rs | use crate::app::components::Divider;
use futures::future::join;
use leptos::{either::EitherOf3, prelude::*};
use serde::{Deserialize, Serialize};
pub mod id;
#[server]
async fn add_showcase(
title: String,
url: String,
discord_url: String,
description: String,
posted_date: String,
) -> Result<(), S... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/educational/id.rs | src/app/routes/admin/educational/id.rs | use crate::app::components::Divider;
use leptos::{either::Either, prelude::*};
use leptos_router::hooks::use_params_map;
use serde::{Deserialize, Serialize};
#[cfg(feature = "ssr")]
use crate::app::server_fn::error::NoCustomError;
#[server]
#[allow(unused_variables)]
async fn update_educational(
educational_id: S... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/devlog/id.rs | src/app/routes/admin/devlog/id.rs | use crate::app::components::Divider;
use leptos::{either::Either, prelude::*};
use leptos_router::hooks::use_params_map;
use serde::{Deserialize, Serialize};
#[cfg(feature = "ssr")]
use crate::app::server_fn::error::NoCustomError;
#[server]
#[allow(unused_variables)]
async fn update_devlog(
devlog_id: String,
... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/crate_release/id.rs | src/app/routes/admin/crate_release/id.rs | use crate::app::components::Divider;
use leptos::{either::Either, prelude::*};
use leptos_router::hooks::use_params_map;
use serde::{Deserialize, Serialize};
#[cfg(feature = "ssr")]
use crate::app::server_fn::error::NoCustomError;
#[server]
#[allow(unused_variables)]
async fn update_crate_release(
crate_release_i... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/admin/showcase/id.rs | src/app/routes/admin/showcase/id.rs | use crate::app::components::Divider;
use leptos::{either::Either, prelude::*};
use leptos_router::hooks::use_params_map;
use serde::{Deserialize, Serialize};
#[cfg(feature = "ssr")]
use crate::app::server_fn::error::NoCustomError;
#[server]
#[allow(unused_variables)]
async fn update_showcase(
showcase_id: String,... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | false |
rust-adventure/thisweekinbevy | https://github.com/rust-adventure/thisweekinbevy/blob/41f5e797fe6817a4275d80fe15cb158adee670ca/src/app/routes/issue/cards.rs | src/app/routes/issue/cards.rs | use super::PROSE;
use crate::app::issue::ImgDataTransformed;
use leptos::{
either::{Either, EitherOf8},
prelude::*,
};
use std::ops::Not;
#[component]
pub fn SideBySide(
title: String,
type_name: String,
images: Vec<ImgDataTransformed>,
description: String,
primary_url: String,
discord_... | rust | MIT | 41f5e797fe6817a4275d80fe15cb158adee670ca | 2026-01-04T20:19:42.107426Z | true |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/swapchain.rs | src/swapchain.rs | use std::{collections::VecDeque, slice, sync::Arc};
use ash::{
khr,
prelude::VkResult,
vk::{self, CompositeAlphaFlagsKHR},
};
use crate::{device::Device, surface::Surface, ImageDimensions};
pub struct Frame {
command_buffer: vk::CommandBuffer,
image_available_semaphore: vk::Semaphore,
render_... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/pipeline_arena.rs | src/pipeline_arena.rs | use ahash::{AHashMap, AHashSet};
use anyhow::Result;
use either::Either;
use slotmap::SlotMap;
use std::{
path::{Path, PathBuf},
sync::Arc,
};
use ash::{
prelude::VkResult,
vk::{self},
};
use crate::{Device, ShaderCompiler, ShaderKind, ShaderSource, Watcher};
pub struct ComputePipeline {
pub layo... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/lib.rs | src/lib.rs | #![allow(clippy::new_without_default)]
#![allow(clippy::too_many_arguments)]
pub mod default_shaders;
mod device;
mod input;
mod instance;
mod pipeline_arena;
mod recorder;
mod shader_compiler;
mod surface;
mod swapchain;
mod texture_arena;
mod watcher;
use std::{
fs::File,
io,
mem::ManuallyDrop,
ops:... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/device.rs | src/device.rs | use anyhow::Result;
use gpu_alloc::{GpuAllocator, MemoryBlock, Request, UsageFlags};
use gpu_alloc_ash::AshMemoryDevice;
use parking_lot::Mutex;
use std::{
ffi::{CStr, CString},
mem::ManuallyDrop,
sync::Arc,
};
use ash::{
ext, khr,
prelude::VkResult,
vk::{self, DeviceMemory, Handle},
};
use cr... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/shader_compiler.rs | src/shader_compiler.rs | use std::path::Path;
use crate::{Watcher, SHADER_FOLDER};
use anyhow::{Context, Result};
use shaderc::{CompilationArtifact, IncludeType, ShaderKind};
pub struct ShaderCompiler {
compiler: shaderc::Compiler,
options: shaderc::CompileOptions<'static>,
}
impl ShaderCompiler {
pub fn new(watcher: &Watcher) -... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/surface.rs | src/surface.rs | use std::ops::Deref;
use anyhow::Result;
use ash::{khr, vk};
use raw_window_handle::{HasDisplayHandle, HasWindowHandle};
use crate::device::Device;
pub struct Surface {
loader: khr::surface::Instance,
inner: vk::SurfaceKHR,
}
impl Deref for Surface {
type Target = vk::SurfaceKHR;
fn deref(&self) -> ... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/watcher.rs | src/watcher.rs | use ahash::{AHashMap, AHashSet};
use anyhow::Result;
use notify_debouncer_mini::{DebounceEventResult, DebouncedEventKind};
use winit::event_loop::EventLoopProxy;
use std::{
ffi::OsStr,
path::{Path, PathBuf},
sync::Arc,
time::Duration,
};
use crate::{ShaderSource, UserEvent};
use parking_lot::Mutex;
... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/recorder.rs | src/recorder.rs | use anyhow::{Context, Result};
use std::{
fs::File,
io::{BufWriter, Write},
path::Path,
process::{Child, Command, Stdio},
thread::JoinHandle,
time::Instant,
};
use crate::{create_folder, ImageDimensions, ManagedImage, SCREENSHOT_FOLDER, VIDEO_FOLDER};
use crossbeam_channel::{Receiver, Sender};
... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/main.rs | src/main.rs | use core::panic;
use std::{
io::Write,
path::{Path, PathBuf},
sync::Arc,
time::{Duration, Instant},
};
use anyhow::{bail, Result};
use ash::{khr, vk};
use either::Either;
use pilka::{
align_to, default_shaders, dispatch_optimal, parse_args, print_help, save_shaders, Args,
ComputeHandle, Device,... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/texture_arena.rs | src/texture_arena.rs | use std::{mem::ManuallyDrop, sync::Arc};
use anyhow::Result;
use ash::{
prelude::VkResult,
vk::{self, DeviceMemory},
};
use gpu_alloc::{MemoryBlock, UsageFlags};
use crate::{Device, ImageDimensions, COLOR_SUBRESOURCE_MASK};
pub const LINEAR_SAMPLER_IDX: usize = 0;
pub const NEAREST_SAMPLER_IDX: usize = 1;
p... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/input.rs | src/input.rs | use super::PushConstant;
use winit::{
event::{ElementState, KeyEvent, RawKeyEvent},
keyboard::{KeyCode, PhysicalKey},
};
#[derive(Debug, Default)]
pub struct Input {
pub move_forward: bool,
pub move_backward: bool,
pub move_right: bool,
pub move_left: bool,
pub move_up: bool,
pub move_d... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/instance.rs | src/instance.rs | use std::{collections::HashSet, ffi::CStr, sync::Arc};
use crate::{device::Device, surface::Surface};
use anyhow::{Context, Result};
use ash::{ext, khr, vk, Entry};
use parking_lot::Mutex;
use raw_window_handle::{HasDisplayHandle, HasWindowHandle};
unsafe extern "system" fn vulkan_debug_callback(
message_severit... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/default_shaders/glsl.rs | src/default_shaders/glsl.rs | pub const FRAG_SHADER: &str = "#version 460
#extension GL_EXT_buffer_reference : require
#extension GL_EXT_nonuniform_qualifier : require
// In the beginning, colours never existed. There's nothing that was done before you...
#include <prelude.glsl>
layout(location = 0) in vec2 in_uv;
layout(location = 0) out vec4 o... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
pannapudi/pilka | https://github.com/pannapudi/pilka/blob/0cd33460bcc9350023a92bb908e910fe147aec8d/src/default_shaders/mod.rs | src/default_shaders/mod.rs | use std::fs::File;
use std::io::Write;
use std::path::Path;
use crate::create_folder;
mod glsl;
pub fn create_default_shaders<P: AsRef<Path>>(name: P) -> std::io::Result<()> {
create_folder(&name)?;
let create_file = |filename: &str, content: &str| -> std::io::Result<()> {
let path = name.as_ref().j... | rust | MIT | 0cd33460bcc9350023a92bb908e910fe147aec8d | 2026-01-04T20:19:40.382559Z | false |
tatut/pgprolog | https://github.com/tatut/pgprolog/blob/e3629cc2f5a56da98c22939436d9d803e2f9a6d5/src/lib.rs | src/lib.rs | use pgrx::prelude::*;
use pgrx::fcinfo::*;
use pgrx::spi::Spi;
use scryer_prolog::machine;
use scryer_prolog::machine::parsed_results::{
QueryResolution, prolog_value_to_json_string
};
use std::time::{Duration, Instant};
pgrx::pg_module_magic!();
#[pg_extern(sql = "CREATE FUNCTION plprolog_call_handler() RETURNS ... | rust | BSD-3-Clause | e3629cc2f5a56da98c22939436d9d803e2f9a6d5 | 2026-01-04T20:19:48.438076Z | false |
smallnest/rpcx-rs | https://github.com/smallnest/rpcx-rs/blob/09578e704de21af635da8357d36be468f10df27b/build.rs | build.rs | [package]
name = "rpcx-rs"
version = "0.1.0"
authors = ["The rpcx-rs Project Developers", "smallnest@gmail.com"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/smallnest/rust-rs"
documentation = "https://docs.rs/rust-rs/"
homepage = "https://crates.io/crates/rust-rs"
keywords = ["rpc", "network",... | rust | Apache-2.0 | 09578e704de21af635da8357d36be468f10df27b | 2026-01-04T20:19:51.398380Z | false |
smallnest/rpcx-rs | https://github.com/smallnest/rpcx-rs/blob/09578e704de21af635da8357d36be468f10df27b/rpcx_server/src/lib.rs | rpcx_server/src/lib.rs | use std::{
boxed::Box,
collections::HashMap,
sync::{Arc, RwLock},
};
use std::net::SocketAddr;
use rpcx_protocol::*;
use std::{
io::{BufReader, BufWriter, Write},
net::{Shutdown, TcpListener, TcpStream},
};
use std::{
os::unix::io::{AsRawFd, RawFd},
thread,
};
use scoped_threadpool::Pool... | rust | Apache-2.0 | 09578e704de21af635da8357d36be468f10df27b | 2026-01-04T20:19:51.398380Z | false |
smallnest/rpcx-rs | https://github.com/smallnest/rpcx-rs/blob/09578e704de21af635da8357d36be468f10df27b/rpcx_server/src/plugin.rs | rpcx_server/src/plugin.rs | use super::{RpcxFn, Server};
#[allow(unused_imports)]
use rpcx_protocol::*;
use std::net::TcpStream;
impl Server {
pub fn add_register_plugin(&mut self, p: Box<dyn RegisterPlugin + Send + Sync>) {
let mut plugins = self.register_plugins.write().unwrap();
plugins.push(p);
}
pub fn add_connect... | rust | Apache-2.0 | 09578e704de21af635da8357d36be468f10df27b | 2026-01-04T20:19:51.398380Z | false |
smallnest/rpcx-rs | https://github.com/smallnest/rpcx-rs/blob/09578e704de21af635da8357d36be468f10df27b/rpcx_client/src/discovery.rs | rpcx_client/src/discovery.rs | use super::selector::ClientSelector;
use std::{
collections::HashMap,
ops::Deref,
sync::{Arc, RwLock},
};
pub trait Discovery<'a> {
fn get_services(&self) -> HashMap<String, String>;
fn add_selector(&'a self, s: &'a (dyn ClientSelector + Sync + Send + 'static));
fn close(&self);
}
#[derive(Def... | rust | Apache-2.0 | 09578e704de21af635da8357d36be468f10df27b | 2026-01-04T20:19:51.398380Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.