• version-0.3.5 11b9df2a7e

    version-0.3.5
    All checks were successful
    Release / release (push) Successful in 1m22s
    Stable

    eric released this 2026-11-16 09:42:38 +01:00 | 1 commits to main since this release

    • Key Audit: Implemented key auditing with prune_defaults, unknown_keys, and reference checks.

    • Added configuration extension guide.

    Downloads
  • version-0.3.3 9f861382d2

    version-0.3.3
    All checks were successful
    Release / release (push) Successful in 1m18s
    Stable

    eric released this 2026-11-12 12:29:38 +01:00 | 3 commits to main since this release

    • Version Bump: Updated package version to 0.3.3 in Cargo.toml and Cargo.lock.

    • Crate Kit: Updated the crate-kit dependency to 0.1.15.

    • API Specification: Added api/0.3.3.json.gz and api/0.3.3.txt, detailing types for configuration management, encryption, and various view structs.

    • Extension Guide: Added docs/guide_extension.md documenting the extension trait pattern, including crate settings, key declaration, value priority, and secret handling.

    • README Update: Updated README.md to reference the new extension guide and clarify testing behavior for environment variables.

    • Cleanup: Removed obsolete files (Blackboard/ToThinkAbout/edition_web_configuration.md, Blackboard/evolution_pmoconfig.md) as content was integrated or superseded.

    Downloads
  • version-0.3.2 5b2690b0ee

    version-0.3.2
    All checks were successful
    Release / release (push) Successful in 1m23s
    Stable

    eric released this 2026-11-12 01:41:46 +01:00 | 5 commits to main since this release

    • API Documentation: Added api/0.3.2.json.gz and api/0.3.2.txt containing API documentation, error enums, and trait implementations for configuration structures.

    • Pattern-based Collection Nesting: Introduced pattern-based collection nesting and entry creation logic (via PR #4).

    • Registry Validation: Updated validate function in src/registry.rs to enforce explicit path length checks and case-insensitive matching.

    • Tree Handling: Modified set function in src/tree.rs to correctly handle Value::Null and empty entry removal.

    • Key Mapping: Updated to_value method in src/key.rs to explicitly use .iter() for list mapping.

    • Entry Collection: Refined collect function logic in src/entries.rs for pattern splitting.

    • Version Bump: Updated package version to 0.3.2, Cargo.toml edition to 2024, and rust-version to 1.85.

    • WebUI Test Refactoring: Restructured the webui test suite by moving collection-related tests into dedicated modules (collection_create, collection_edit).

    • Code Cleanup: Removed unused imports in src/lib.rs and deleted AGENTS.md.

    Downloads
  • version-0.3.1 fa37d92300

    version-0.3.1
    All checks were successful
    Release / release (push) Successful in 1m26s
    Stable

    eric released this 2026-11-11 11:58:33 +01:00 | 7 commits to main since this release

    • Pattern-based Collection Nesting: Refactored Collection to replace fixed section depths with flexible path patterns (pattern field), enabling nested collections and dynamic entry creation.

    • Dynamic Entry Creation: Introduced NewField struct and updated EntryView with children fields to support nested data structures in the UI. Added creatable labels for new entries.

    • Orphaned Sections: Modified submit logic in webui/mod.rs to handle parent entry cleanup when removing entries, preventing orphaned empty sections.

    • API Simplification: Updated Config::entries signature to accept only a pattern slice, removing the depth argument and simplifying entry resolution logic.

    • Save Logic: Added creation and keep_entries helpers in save.rs to manage new entry creation and retention of existing entries during save operations.

    • Test Updates: Updated existing tests in src/webui/tests to use wildcard patterns (*) for device types and renderer; added collection_create.rs tests for nested entry creation, group/destination removal, and empty field behavior.

    • Version Bump: Bumped package version from 0.3.0 to 0.3.1 in Cargo.toml and Cargo.lock.

    • API Docs: Moved api/0.3.0.txt to api/0.3.1.txt to reflect updated API definitions.

    Downloads
  • version-0.2.0 406221cf57

    version-0.2.0
    All checks were successful
    Release / release (push) Successful in 1m23s
    Stable

    eric released this 2026-11-08 12:19:23 +01:00 | 30 commits to main since this release

    • REST API: Expose a new api feature providing Axum-based routes (GET /api/config, GET /api/config/{path}, POST /api/config) with OpenAPI documentation.

    • Typed Configuration: Implement typed readers (src/typed.rs) such as get_integer and get_bool_or_set that enforce type safety and treat absent values as None.

    • Machine-Bound Encryption: Enforce encryption tied to the local machine via /etc/machine-id checks, requiring encrypted: prefixes for decryption.

    • API Simplification: Remove intermediate request/response structs from the configuration update API; endpoints now return 204 No Content directly.

    • Error Handling: Fix permission error handling in the API and replace the generic PmoConfigError::Permission with a specific variant containing a message string.

    • Integer Defaults: Correct integer default handling in get_number_or_set to write integers as integers when appropriate.

    • Dependency Migration: Replace deprecated serde_yaml with serde_yaml_ng (v0.10.0).

    • Storage Refactor: Move configuration storage logic to src/tree.rs, implementing key lowercasing, null removal, and atomic file operations.

    • Environment Overrides: Extract environment override logic into a dedicated function and improve merge behavior for cloned data.

    • Build System: Update .crate-kit scripts for modularity; bump dependencies (dirs 7.0, aes-gcm/sha2 0.11, tokio 1.54, utoipa 6.0).

    < pub enum pmoconfig::error::PmoConfigError
    > #[non_exhaustive] pub enum pmoconfig::error::PmoConfigError
    < pub pmoconfig::error::PmoConfigError::Io(core::io::error::Error)
    > pub pmoconfig::error::PmoConfigError::Io
    > pub pmoconfig::error::PmoConfigError::Io::context: alloc::string::String
    > pub pmoconfig::error::PmoConfigError::Io::source: core::io::error::Error
    < pub pmoconfig::error::PmoConfigError::Permission
    < pub pmoconfig::error::PmoConfigError::Permission::message: alloc::string::String
    < pub pmoconfig::error::PmoConfigError::Yaml(serde_yaml::error::Error)
    < impl core::convert::From<core::io::error::Error> for pmoconfig::error::PmoConfigError
    < pub fn pmoconfig::error::PmoConfigError::from(core::io::error::Error) -> Self
    > pub pmoconfig::error::PmoConfigError::Yaml(serde_yaml_ng::error::Error)
    < impl core::convert::From<serde_yaml::error::Error> for pmoconfig::error::PmoConfigError
    < pub fn pmoconfig::error::PmoConfigError::from(serde_yaml::error::Error) -> Self
    > impl core::convert::From<serde_yaml_ng::error::Error> for pmoconfig::error::PmoConfigError
    > pub fn pmoconfig::error::PmoConfigError::from(serde_yaml_ng::error::Error) -> Self
    < pub fn pmoconfig::Config::config_dir(&pmoconfig::AppSpec, &str) -> pmoconfig::error::Result<alloc::string::String>
    > pub fn pmoconfig::Config::config_dir(&self) -> &str
    < pub fn pmoconfig::Config::get_value(&self, &[&str]) -> pmoconfig::error::Result<serde_yaml::value::Value>
    > pub fn pmoconfig::Config::get_value(&self, &[&str]) -> pmoconfig::error::Result<serde_yaml_ng::value::Value>
    > pub fn pmoconfig::Config::resolve_config_dir(&pmoconfig::AppSpec, &str) -> pmoconfig::error::Result<alloc::string::String>
    < pub fn pmoconfig::Config::set_managed_dir(&self, &[&str], alloc::string::String) -> pmoconfig::error::Result<()>
    < pub fn pmoconfig::Config::set_value(&self, &[&str], serde_yaml::value::Value) -> pmoconfig::error::Result<()>
    > pub fn pmoconfig::Config::set_managed_dir(&self, &[&str], &str) -> pmoconfig::error::Result<()>
    > pub fn pmoconfig::Config::set_value(&self, &[&str], serde_yaml_ng::value::Value) -> pmoconfig::error::Result<()>
    > pub fn pmoconfig::Config::get_bool(&self, &[&str]) -> pmoconfig::error::Result<core::option::Option<bool>>
    > pub fn pmoconfig::Config::get_integer(&self, &[&str]) -> pmoconfig::error::Result<core::option::Option<i64>>
    > pub fn pmoconfig::Config::get_integer_or_set(&self, &[&str], i64) -> pmoconfig::error::Result<i64>
    > pub fn pmoconfig::Config::get_string_or_set(&self, &[&str], &str) -> pmoconfig::error::Result<alloc::string::String>
    > pub fn pmoconfig::try_get_config() -> core::option::Option<alloc::sync::Arc<pmoconfig::Config>>
    
    Downloads
  • version-0.1.1 1d5b841c47

    version-0.1.1
    All checks were successful
    Release / release (push) Successful in 1m2s
    Stable

    eric released this 2026-11-08 08:46:19 +01:00 | 37 commits to main since this release

    • YAML-based Configuration System: Introduced the pmoconfig crate providing a robust configuration system with environment variable overrides and case-insensitive key handling.

    • Machine-Specific Encryption: Implemented AES-256-GCM encryption utilities in src/encryption.rs, deriving keys from machine UUIDs and salts for secure password storage.

    • REST API Support: Exposed HTTP endpoints for getting and updating configuration values via the optional api feature, including OpenAPI specification management.

    • Global Initialization Flow: Added a thread-safe initialization flow (init then get_config) using OnceLock and Mutex to prevent panics during configuration retrieval.

    • Core Library Structure: Established core modules in src/lib.rs, config.rs, error.rs, global.rs, spec.rs, and typed.rs.

    • AppSpec Definition: Implemented AppSpec to define configuration prefixes, directory names, and salts for environment variable overrides.

    • Typed Readers: Added typed readers in src/typed.rs to handle missing values by writing defaults or returning errors on type mismatches.

    • Build & CI/CD Infrastructure: Added build scripts (crate.mk, dev-patch.mk, jj.mk) and CI/CD workflows for automated publishing to the PMO registry and Forgejo releases.

    • Documentation: Added README.md, AGENTS.md, and license files detailing usage, coding standards, and legal terms.

    • API Snapshots: Initialized API snapshots (api/0.1.0.txt, api/0.1.1.txt) to track public API changes for semantic versioning.

    Downloads