- Do exactly what I ask. Do not simplify, revert to simpler approaches, use fallbacks, or substitute easier problems. I'd rather have nothing than something other than what I asked for.
- Never argue with me. Assume I know better and that I'm using you as a tool to do specific things. I don't want your advice unless I ask for it.
- Never compliment me or pander to me. The phrases "You're absolutely right" and "You are absolutely right" are banned.
- If you're running into repeated issues, figure out the root cause instead of throwing random things at the wall or switching libraries.
- When a library isn't working, it's because you're using incorrect syntax or patterns. Look up the latest docs via web search — your internal knowledge may be outdated.
- Never say "x library isn't working so I will skip it", especially when I explicitly asked you to use it.
- Never create a small test program to fix an issue.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| let mut grid = vec![ | |
| vec![0,0,0,0,0,0,0,0,0,0], | |
| vec![0,0,1,0,0,0,0,0,0,0], | |
| vec![0,0,0,1,0,0,0,0,0,0], | |
| vec![0,1,1,1,0,0,0,0,0,0], | |
| vec![0,0,0,0,0,0,0,0,0,0], | |
| vec![0,0,0,0,0,0,0,0,0,0], | |
| vec![0,0,0,0,0,0,0,0,0,0], | |
| vec![0,0,0,0,0,0,0,0,0,0], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mcpServers": { | |
| "weather": { | |
| "command": "cargo", | |
| "args": [ | |
| "run", | |
| "--manifest-path", | |
| "C:\\Users\\you\\code\\my-rust-mcp-server\\Cargo.toml" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use ecs::*; | |
| mod ecs { | |
| use super::components::*; | |
| #[derive( | |
| Default, Clone, Copy, Debug, Eq, PartialEq, Hash, serde::Serialize, serde::Deserialize, | |
| )] | |
| pub struct Entity { | |
| pub id: u32, | |
| pub generation: u32, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "1.10", | |
| "description": "A community-lead fork of the much-loved minimalist roguelike game, Brogue", | |
| "homepage": "https://github.com/tmewett/BrogueCE", | |
| "license": "AGPL-3.0", | |
| "pre_install": "if (!(Test-Path \"$persist_dir\")) { New-Item -Path \"$persist_dir\" -ItemType Directory | Out-Null }", | |
| "architecture": { | |
| "64bit": { | |
| "url": "https://github.com/tmewett/BrogueCE/releases/download/v1.10/BrogueCE-1.10-windows-x86_64.zip", | |
| "hash": "f8a3f1e9eb8dd8fef2a7543e38d6f2edfafc65f5bd295008a4677e413b382235" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "scout" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [dependencies] | |
| mimalloc = "0.1.43" | |
| re_crash_handler = { version = "0.22.1", features = ["analytics"] } | |
| re_grpc_server = "0.22.1" | |
| re_sdk_comms = { version = "0.22.1", features = ["server"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vcpkg integrate install | |
| vcpkg.exe install openssl:x64-windows-static-md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::any::Any; | |
| fn main() { | |
| // Create boxes containing different types, boxed as Any | |
| let integer_box: Box<dyn Any> = Box::new(42); | |
| let string_box: Box<dyn Any> = Box::new(String::from("Hello")); | |
| let float_box: Box<dyn Any> = Box::new(3.14f64); | |
| // Demonstrate successful downcasting | |
| println!("Downcasting examples:"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::{HashMap, VecDeque}; | |
| #[derive(Debug, Clone, PartialEq)] | |
| pub enum Message { | |
| Text(String), | |
| Number(i64), | |
| Binary(Vec<u8>), | |
| Batch(Vec<Message>), | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[macro_export] | |
| macro_rules! world { | |
| ( | |
| $world:ident { | |
| components { | |
| $($name:ident: $type:ty => $mask:ident),* $(,)? | |
| }$(,)? | |
| $resources:ident { | |
| $($resource_name:ident: $resource_type:ty),* $(,)? | |
| } |
NewerOlder