v0.31.0
This commit is contained in:
1 parent
f213d853e2
commit
76b8bb7ee2
78 files changed
+7750
-5204
No files matched your search
@@ -2,6 +2,7 @@
|
||||
"""Offline source guard for subprocess-free system information; not a Rust runtime test."""
|
||||
from pathlib import Path
|
||||
import tomllib
|
||||
from rust_source import rust_source
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
manifest = tomllib.loads((ROOT / 'Cargo.toml').read_text())
|
||||
@@ -13,7 +14,7 @@ assert {'network', 'system'} <= set(sysinfo_features), (
|
||||
)
|
||||
assert any('systemstat' in target.get('dependencies', {}) for target in manifest.get('target', {}).values())
|
||||
|
||||
status = (ROOT / 'src/admin/status.rs').read_text()
|
||||
status = rust_source(ROOT, 'src/admin/status.rs')
|
||||
assert 'sysinfo::System::long_os_version()' in status
|
||||
assert 'sysinfo::System::kernel_version()' in status
|
||||
assert 'std::sync::OnceLock' in status
|
||||
|
||||
Reference in new issue
Block a user