Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = [
"crates/mt-core",
"crates/mt-cli",
"crates/mt-napi",
"crates/mt-protocol-check",
]
resolver = "2"

Expand Down
12 changes: 12 additions & 0 deletions crates/mt-protocol-check/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "mt-protocol-check"
description = "Smoke-тест wiring: підтверджує, що git-залежність mt-protocol (nitra/mt) резолвиться, компілюється і контент docs/ доступний"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
publish = false

[dependencies]
# TODO: перевести на main/тег після мерджу nitra/mt#62
mt-protocol = { git = "https://github.com/nitra/mt", branch = "claude/mt-protocol-crate" }
12 changes: 12 additions & 0 deletions crates/mt-protocol-check/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//! Порожній крейт-заглушка: єдине призначення — smoke-тест нижче, що
//! доводить резолвинг git-залежності `mt-protocol` (`nitra/mt`).

#[cfg(test)]
mod tests {
#[test]
fn mt_protocol_git_dependency_resolves_and_docs_are_reachable() {
let content = mt_protocol::get("index.md")
.expect("mt-protocol::get(\"index.md\") має повернути вміст із вшитого docs/ корпусу");
assert!(!content.is_empty(), "index.md не має бути порожнім");
}
}
Loading