From 9e204ef818ec6af83b703385d6eb7d3a7314fc49 Mon Sep 17 00:00:00 2001 From: Tristan Michael Date: Tue, 31 Mar 2026 09:46:55 -0700 Subject: [PATCH] rename onyx-core crate (formerly bevy-tasks-core) --- crates/{bevy-tasks-core => onyx-core}/Cargo.toml | 4 ++-- crates/{bevy-tasks-core => onyx-core}/src/config.rs | 2 +- crates/{bevy-tasks-core => onyx-core}/src/error.rs | 0 crates/{bevy-tasks-core => onyx-core}/src/lib.rs | 0 crates/{bevy-tasks-core => onyx-core}/src/models.rs | 0 .../{bevy-tasks-core => onyx-core}/src/repository.rs | 0 crates/{bevy-tasks-core => onyx-core}/src/storage.rs | 0 crates/{bevy-tasks-core => onyx-core}/src/sync.rs | 0 crates/{bevy-tasks-core => onyx-core}/src/webdav.rs | 12 ++++++------ 9 files changed, 9 insertions(+), 9 deletions(-) rename crates/{bevy-tasks-core => onyx-core}/Cargo.toml (88%) rename crates/{bevy-tasks-core => onyx-core}/src/config.rs (99%) rename crates/{bevy-tasks-core => onyx-core}/src/error.rs (100%) rename crates/{bevy-tasks-core => onyx-core}/src/lib.rs (100%) rename crates/{bevy-tasks-core => onyx-core}/src/models.rs (100%) rename crates/{bevy-tasks-core => onyx-core}/src/repository.rs (100%) rename crates/{bevy-tasks-core => onyx-core}/src/storage.rs (100%) rename crates/{bevy-tasks-core => onyx-core}/src/sync.rs (100%) rename crates/{bevy-tasks-core => onyx-core}/src/webdav.rs (98%) diff --git a/crates/bevy-tasks-core/Cargo.toml b/crates/onyx-core/Cargo.toml similarity index 88% rename from crates/bevy-tasks-core/Cargo.toml rename to crates/onyx-core/Cargo.toml index a158b1e..0100d0a 100644 --- a/crates/bevy-tasks-core/Cargo.toml +++ b/crates/onyx-core/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "bevy-tasks-core" +name = "onyx-core" version = "0.1.0" edition = "2021" description = "Core library for local-first task management with markdown storage and WebDAV sync" license = "GPL-3.0-or-later" -repository = "https://github.com/SteelDynamite/bevy-tasks" +repository = "https://github.com/SteelDynamite/onyx" [dependencies] serde = { workspace = true } diff --git a/crates/bevy-tasks-core/src/config.rs b/crates/onyx-core/src/config.rs similarity index 99% rename from crates/bevy-tasks-core/src/config.rs rename to crates/onyx-core/src/config.rs index 4741204..9667fe3 100644 --- a/crates/bevy-tasks-core/src/config.rs +++ b/crates/onyx-core/src/config.rs @@ -82,7 +82,7 @@ impl AppConfig { } pub fn get_config_path() -> PathBuf { - let config_dir = directories::ProjectDirs::from("", "", "bevy-tasks") + let config_dir = directories::ProjectDirs::from("", "", "onyx") .expect("Failed to determine config directory"); config_dir.config_dir().join("config.json") } diff --git a/crates/bevy-tasks-core/src/error.rs b/crates/onyx-core/src/error.rs similarity index 100% rename from crates/bevy-tasks-core/src/error.rs rename to crates/onyx-core/src/error.rs diff --git a/crates/bevy-tasks-core/src/lib.rs b/crates/onyx-core/src/lib.rs similarity index 100% rename from crates/bevy-tasks-core/src/lib.rs rename to crates/onyx-core/src/lib.rs diff --git a/crates/bevy-tasks-core/src/models.rs b/crates/onyx-core/src/models.rs similarity index 100% rename from crates/bevy-tasks-core/src/models.rs rename to crates/onyx-core/src/models.rs diff --git a/crates/bevy-tasks-core/src/repository.rs b/crates/onyx-core/src/repository.rs similarity index 100% rename from crates/bevy-tasks-core/src/repository.rs rename to crates/onyx-core/src/repository.rs diff --git a/crates/bevy-tasks-core/src/storage.rs b/crates/onyx-core/src/storage.rs similarity index 100% rename from crates/bevy-tasks-core/src/storage.rs rename to crates/onyx-core/src/storage.rs diff --git a/crates/bevy-tasks-core/src/sync.rs b/crates/onyx-core/src/sync.rs similarity index 100% rename from crates/bevy-tasks-core/src/sync.rs rename to crates/onyx-core/src/sync.rs diff --git a/crates/bevy-tasks-core/src/webdav.rs b/crates/onyx-core/src/webdav.rs similarity index 98% rename from crates/bevy-tasks-core/src/webdav.rs rename to crates/onyx-core/src/webdav.rs index 87c54b7..fc852e5 100644 --- a/crates/bevy-tasks-core/src/webdav.rs +++ b/crates/onyx-core/src/webdav.rs @@ -381,7 +381,7 @@ fn extract_relative_path(href: &str, base_url: &str, request_path: &str) -> Stri /// Store WebDAV credentials in the platform keychain. pub fn store_credentials(domain: &str, username: &str, password: &str) -> Result<()> { - let service = format!("com.bevy-tasks.webdav.{}", domain); + let service = format!("com.onyx.webdav.{}", domain); let user_entry = keyring::Entry::new(&service, "username") .map_err(|e| Error::Credential(format!("Failed to create keyring entry: {}", e)))?; @@ -398,7 +398,7 @@ pub fn store_credentials(domain: &str, username: &str, password: &str) -> Result /// Load WebDAV credentials from the platform keychain, falling back to env vars. pub fn load_credentials(domain: &str) -> Result<(String, String)> { - let service = format!("com.bevy-tasks.webdav.{}", domain); + let service = format!("com.onyx.webdav.{}", domain); let user_entry = keyring::Entry::new(&service, "username") .map_err(|e| Error::Credential(format!("Failed to create keyring entry: {}", e)))?; @@ -411,21 +411,21 @@ pub fn load_credentials(domain: &str) -> Result<(String, String)> { // Fallback to env vars for headless/CI environments if let (Ok(user), Ok(pass)) = ( - std::env::var("BEVY_TASKS_WEBDAV_USER"), - std::env::var("BEVY_TASKS_WEBDAV_PASS"), + std::env::var("ONYX_WEBDAV_USER"), + std::env::var("ONYX_WEBDAV_PASS"), ) { return Ok((user, pass)); } Err(Error::Credential(format!( - "No credentials found for '{}'. Run 'bevy-tasks sync --setup' or set BEVY_TASKS_WEBDAV_USER and BEVY_TASKS_WEBDAV_PASS.", + "No credentials found for '{}'. Run 'onyx sync --setup' or set ONYX_WEBDAV_USER and ONYX_WEBDAV_PASS.", domain ))) } /// Delete WebDAV credentials from the platform keychain. pub fn delete_credentials(domain: &str) -> Result<()> { - let service = format!("com.bevy-tasks.webdav.{}", domain); + let service = format!("com.onyx.webdav.{}", domain); if let Ok(entry) = keyring::Entry::new(&service, "username") { let _ = entry.delete_credential();