Add robust myfsio_core staleness detection with Python fallback; document Rust extension build in README

This commit is contained in:
2026-03-31 17:13:05 +08:00
parent 2ad3736852
commit e94b341a5b
5 changed files with 23 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ from typing import Any, Dict, List, Optional
try:
import myfsio_core as _rc
if not hasattr(_rc, "md5_file"):
raise ImportError("myfsio_core is outdated, rebuild with: cd myfsio_core && maturin develop --release")
_HAS_RUST = True
except ImportError:
_HAS_RUST = False