尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Renk is an indentation-based syntax for Rust, inspired by Rust's Ugly Syntax.
Documentation: https://scarf005.github.io/renk/ (한국어)
#[derive(Debug, Clone)]
pub struct User:
pub id: u64
pub name: String
impl User:
pub fn new(id: u64, name: String) -> Self = Self{ id, name }
pub fn display_name(&self) -> &str = &self.name
pub fn main():
let user = User.new(1, "Ada".to_string())
println!("{user.display_name()}")
Generated Rust:
#[derive(Debug, Clone)]
pub struct User {
pub id: u64,
pub name: String,
}
impl User {
pub fn new(id: u64, name: String) -> Self {
Self{ id, name }
}
pub fn display_name(&self) -> &str {
&self.name
}
}
pub fn main() {
let user = User::new(1, "Ada".to_string());
println!("{}", user.display_name());
}
cargo install --path crates/renk --bin renk --bin renk-lsp
renk transpile input.rk -o output.rs
renk from-rust input.rs -o output.rk
cat input.rk | renk
See Getting started and Syntax.
renk fmt formats a file with rustfmt's layout; --check prints a diff and exits with 1 for unformatted files. Details.
renk fmt src/main.rk -o src/main.rk
renk fmt --check src/*.rk
renk build, renk run, renk test, and renk cargo ... transpile .rk files under Cargo source roots into .rs files, then run Cargo. Details.
renk cargo test
renk script runs a single-file script with cargo +nightly -Zscript. Dependencies go in --- frontmatter; renk add edits it. Details.
#!/usr/bin/env -S renk script
---
[dependencies]
regex = "1"
---
fn main():
println!("{}", regex::Regex::new("a+").unwrap().is_match("caab"))
renk script tool.rk arg
renk add tool.rk regex
renk-lsp is a stdio language server. It reports syntax errors and symbols, and forwards rust-analyzer's diagnostics, hover, definition, completion, references, rename, code actions, and inlay hints. Editor setup.
podman compose up --build serves the web editor at http://localhost:8080. just web starts it from a checkout. Details.
Renk reads text, not types, so some names are misread. See Limits.