дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 11:15:40 +02:00
Cargo.toml had no way to tell that a dependency had a newer release.
Dependencies in [dependencies], [dev-dependencies], [build-dependencies], target tables and [workspace.dependencies] now get a weak warning when the newest stable release is outside the version requirement, with a quick fix that rewrites the requirement at its original precision ("0.7" → "0.10") in both string and inline-table forms. Versions complete inside the version string, newest first, without yanked releases. Path, git and workspace-inherited dependencies are skipped, prereleases are only suggested to prerelease requirements, and failures stay silent.
Versions come from the crates.io sparse index through the backend's HTTP client, with an in-memory and on-disk cache and coalesced requests, behind a dependency version source shared by file-type parsers so other manifests can be added later. semver is now used directly; it was already linked into the app.
Fixes #479
42 рядки
1.1 KiB
Rust
42 рядки
1.1 KiB
Rust
//! The project model that ties documents, settings and history together.
|
|
|
|
pub mod caches;
|
|
pub mod dependencies;
|
|
pub mod devcontainer;
|
|
pub mod documents;
|
|
pub mod editorconfig;
|
|
pub mod file_defaults;
|
|
pub mod file_moves;
|
|
pub mod file_refs;
|
|
pub mod history;
|
|
pub mod memory;
|
|
pub mod process;
|
|
pub mod recent;
|
|
pub mod roots;
|
|
pub mod settings;
|
|
pub mod text_refs;
|
|
pub mod window_groups;
|
|
pub mod workspace;
|
|
|
|
pub use documents::{DetectLanguage, DocumentInfo, Documents, TextSnapshot};
|
|
pub use editorconfig::{EditorConfig, EditorConfigProps};
|
|
pub use file_defaults::FileDefaults;
|
|
pub use file_moves::{FileMove, FileMoves, UndoOutcome};
|
|
pub use history::{DirectoryHistory, HistoryEntry, HistoryKind, LocalHistory, Retention};
|
|
pub use recent::{RecentProject, RecentProjects};
|
|
pub use roots::{ProjectRoots, RootKind, SourceFolder};
|
|
pub use settings::{SettingsScope, SettingsStore};
|
|
|
|
#[cfg(test)]
|
|
mod assertions {
|
|
fn send_sync<T: Send + Sync>() {}
|
|
|
|
#[test]
|
|
fn types_are_thread_safe() {
|
|
send_sync::<super::Documents>();
|
|
send_sync::<super::LocalHistory>();
|
|
send_sync::<super::RecentProjects>();
|
|
send_sync::<super::SettingsStore>();
|
|
}
|
|
}
|