소스 정보
- 저장소
- idalib-rs/idalib
- 최근 소스 활동
- 2026년 2월 20일 03:42
- 감지된 SKILL.md 언어
- 영어
- 스타
- 314
- 포크
- 37
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/idalib-rs/idalib --skill idalib-rust-style명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | idalib-rust-style |
| description | Best practices for contributing to IDALIB Rust bindings |
Ensure the entire codebase adheres to the guidelines below. There should be no exceptions to these guidelines, failure to enforce them will result in a failed review.
Follow these instructions strictly to ensure high-quality Rust code:Do not use emojis and avoid excessive comments. Write self-explanatory code instead.
Do not use decorations around println, etc.
Consistentently name types and methods.
Provide accessors and mutators for struct fields, avoid pub fields. E.g., for a field named timeout, provide:
fn timeout(&self) -> ... { ... }
fn set_timeout(&mut self, to: ...) { ... }
Use fluent style method names.
Organise imports in the following order: 1) standard library imports, 2) external library imports next, 3) same crate imports next. Use appropriate whitespace to separate groups of related imports.
Do not nest modules in imports--DO NOT do this: use module1::blah::{module2::bleep::Type, module3::Bleh}.
CORRECT:
use module1::blah::module2::bleep::Type;
use module1::blah::module3::Bleh;
CORRECT:
use std::collections::{HashMap, HashSet};
use std::path::{Path, PathBuf};
use serde::Serialize;
use tokio::fs;
use crate::models::DataModel;
use crate::utils::helper;
INCORRECT:
rust use std::{collections::{HashMap, HashSet}, path::{Path, PathBuf}};
INCORRECT:
rust use std::collections::HashMap; use std::collections::HashSet;
For module layout, use mod.rs and directories when a module may have sub-modules or module_name.rs for leaf modules. Do not use new-style module paths.
Handle errors, DO NOT silently ignore them without good reason.
For error messages, always use lower-case unless you have a proper noun or acronym at the start of the string, i.e., prefer “component not found: reason” over “Component not found: Reason”, but keep "I/O error: reason" and "HTTP error: reason".
Make use of “borrowed” types rather than owned variants if possible:
impl AsRef<Borrowed> vs &Owned or impl AsRef<Owned> unless the owned variant is really needed.impl AsRef<str> or &str over &Stringimpl AsRef<[u8]> or &[u8] over &Vec<u8>impl AsRef<Path> or &Path over &PathBufPrefer to use methods that indicate intent: avoid usage of to_string on &str and opt for to_owned or String::from instead.
Avoid useless imports, e.g, use log;; this is superfluous, since log will already be in scope if you have log as a dependency.
For collections, prefer Vec::new() over vec![] for empty vectors.
When using Option and Result, prefer the ? operator for propagating errors and unwrapping values instead of using .unwrap() or .expect().
Do not annotate types via their let bindings, ALWAYS use turbo-fish syntax or rely on type inference. For example, use:
let value = Vec::<u8>::new();
or
let value = ::();
pub struct MyStruct<'a> {
_marker: PhantomData<&'a IDB>,
}
cargo fmt -- --config imports_granularity=Module,group_imports=StdExternalCrate to format your code.cargo clippy --no-deps to lint your code and cargo clippy --fix to automatically fix issues where possible.cargo dylint --git https://github.com/xorpse/rust-style --pattern '*' to run the custom lints for this project. If dylint does not run correctly, ensure it is installed: cargo install cargo-dylint dylint-link.over
let value: Vec<u8> = Vec::new();
When formatting to build strings, log, or to print to the console, ensure you format as below:
let name = "Alice";
let greeting = format!("Hello, {name}!");
println!("Hello, {name}!");
DO NOT:
let name = "Alice";
let greeting = format!("Hello, {}!", name);
println!("Hello, {}!", name);
DO NOT call FFI functions in methods that operate on an IDB or derived types without binding the owning type to the lifetime of the IDB. For exmaple: