feat: крейт mt-protocol — вбудована специфікація для Rust-реалізації - #62
Closed
vitaliytv wants to merge 1 commit into
Closed
feat: крейт mt-protocol — вбудована специфікація для Rust-реалізації#62vitaliytv wants to merge 1 commit into
vitaliytv wants to merge 1 commit into
Conversation
Root-level Rust-крейт mt-protocol вшиває docs/ через include_dir і надає mt_protocol::get(path) для доступу до контенту специфікації без ручного копіювання. Споживається nitra/mt-rust як git-залежність. npm-пакет @7n/mt лишається docs-only — Rust-файли в тарбол не входять. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
vitaliytv
added a commit
to nitra/mt-rust
that referenced
this pull request
Jul 23, 2026
Замість окремого Rust-крейта (nitra/mt#62, лишається відкритим на розгляд) — простіший канал: @7n/mt (сам пакет-специфікація, docs-only, з 0.29.0) як звичайна devDependency. Після bun install доступна на диску без окремого клонування: node_modules/@7n/mt/docs/index.md. README: виправлено застарілу згадку "@7n/mt = тонкий JS-клієнт" — це ім'я тепер належить специфікації; код CLI живе в nitra/mt-js і наразі не публікується. .cspell.json: додано відсутні словоформи (бампом, бінарниками), які спливли при делта-лінті зміненого README.md. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Що зроблено
Додано root-level Rust-крейт
mt-protocolпоряд зdocs/цього спека-репозиторію:Cargo.toml— пакетmt-protocol(edition 2021, license ISC), залежністьinclude_dir(featureglob).src/lib.rs—pub static DOCS: Dirвшиваєdocs/на етапі компіляції черезinclude_dir!,pub fn get(path: &str) -> Option<&'static str>дає доступ до вмісту файлу специфікації за відносним шляхом.cargo test):index.mdприсутній і непорожній, у корпусі більше 5 md-файлів, відсутній файл даєNone..github/workflows/lint-rust.yml— канонічний CI (rustfmt + clippy) за шаблоном плагінаrust.lint_rust_yml..n-rules.json: додано правилоrust.README.md: короткий розділ про крейт.package.json/.gitignore: npm-пакет@7n/mtлишається docs-only (filesне змінювались),/targetв.gitignore.Навіщо
Встановлює канал вбудовування специфікації для Rust — крейт буде споживатись nitra/mt-rust як git-залежність (branch
claude/mt-protocol-crateцього репозиторію), щоб Rust-код мав доступ до корпусуdocs/без ручного копіювання файлів між репозиторіями. Крейт наразі не публікується в crates.io — тільки через git-dependency.Верифікація
cargo build— OKcargo test— 3/3 passedcargo fmt --all -- --check— OKcargo clippy --all-targets --all-features -- -D warnings— OKnpx @7n/rules lint --no-fix— 0 порушеньnpx @7n/rules lint ga --no-fix/lint rust --no-fix— 0 порушеньnpx @7n/rules lint --full --no-fix— exit 0npm pack --dry-run— тарбол лишається docs-only (45 файлів, тількиdocs/,README.md,CHANGELOG.md,package.json)Не мерджити
Гілка призначена для консьюмингу з nitra/mt-rust (PR буде відкрито окремо, вказуватиме на цю гілку до мерджу).
🤖 Generated with Claude Code