Document not found (404)
+This URL is invalid, sorry. Please use the navigation bar or search to continue.
+ +diff --git a/.github/renovate.json5 b/.github/renovate.json5 deleted file mode 100644 index c9ad918..0000000 --- a/.github/renovate.json5 +++ /dev/null @@ -1,26 +0,0 @@ -{ - "schedule": [ - "before 3am on the first day of the month" - ], - "semanticCommits": "enabled", - "configMigration": true, - "packageRules": [ - // Goals: - // - Rollup safe upgrades to reduce CI runner load - // - Have lockfile and manifest in-sync - { - "matchManagers": ["cargo"], - "matchCurrentVersion": ">=0.1.0", - "matchUpdateTypes": ["patch"], - "automerge": true, - "groupName": "compatible", - }, - { - "matchManagers": ["cargo"], - "matchCurrentVersion": ">=1.0.0", - "matchUpdateTypes": ["minor"], - "automerge": true, - "groupName": "compatible", - }, - ], -} diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml deleted file mode 100644 index 8158c03..0000000 --- a/.github/workflows/audit.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: Audit - -permissions: - contents: read - -on: - pull_request: - push: - branches: - - main - -env: - RUST_BACKTRACE: 1 - CARGO_TERM_COLOR: always - CLICOLOR: 1 - -concurrency: - group: "${{ github.workflow }}-${{ github.ref }}" - cancel-in-progress: true - -jobs: - audit: - permissions: - contents: none - name: Audit - needs: [advisories, cargo_deny, actions] - runs-on: ubuntu-latest - if: "always()" - steps: - - name: Failed - run: exit 1 - if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')" - advisories: - permissions: - issues: write # to create issues (actions-rs/audit-check) - checks: write # to create check (actions-rs/audit-check) - runs-on: ubuntu-latest - # Prevent sudden announcement of a new advisory from failing ci: - continue-on-error: true - strategy: - matrix: - checks: - - advisories - steps: - - name: Checkout repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - name: Lint advisories - uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2.0.15 - with: - command: check ${{ matrix.checks }} - rust-version: stable - - cargo_deny: - permissions: - issues: write # to create issues (actions-rs/audit-check) - checks: write # to create check (actions-rs/audit-check) - runs-on: ubuntu-latest - strategy: - matrix: - checks: - - bans licenses sources - steps: - - name: Checkout repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - name: Lint bans - uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2.0.15 - with: - command: check ${{ matrix.checks }} - rust-version: stable - - actions: - runs-on: ubuntu-latest - permissions: - security-events: write - contents: read # only needed for private or internal repos - actions: read # only needed for private or internal repos - steps: - - name: Checkout repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - name: Run zizmor - uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2 diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml deleted file mode 100644 index e226687..0000000 --- a/.github/workflows/book.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: book -on: - pull_request: - push: - branches: - - master -jobs: - book: - runs-on: ubuntu-latest - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - steps: - - uses: actions/checkout@v6 - - name: Setup - uses: peaceiris/actions-mdbook@v2 - with: - mdbook-version: '0.4.14' - - name: Build - run: mdbook build - - name: Deploy - uses: peaceiris/actions-gh-pages@v4 - if: ${{ github.ref == 'refs/heads/master' }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./book diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index d0dfc49..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,88 +0,0 @@ -name: CI - -permissions: - contents: read - -on: - pull_request: - push: - branches: - - master - -env: - RUST_BACKTRACE: 1 - CARGO_TERM_COLOR: always - CLICOLOR: 1 - -concurrency: - group: "${{ github.workflow }}-${{ github.ref }}" - cancel-in-progress: true - -jobs: - ci: - permissions: - contents: none - name: CI - needs: [test, lockfile, rustfmt] - runs-on: ubuntu-latest - if: "always()" - steps: - - name: Failed - run: exit 1 - if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')" - test: - name: Test - strategy: - matrix: - os: ["ubuntu-latest"] - rust: ["stable"] - continue-on-error: ${{ matrix.rust != 'stable' }} - runs-on: ${{ matrix.os }} - env: - # Reduce amount of data cached - CARGO_PROFILE_DEV_DEBUG: line-tables-only - steps: - - name: Checkout repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - name: Install Rust - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable - with: - toolchain: ${{ matrix.rust }} - - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 - - name: Default features - run: cargo test --workspace - lockfile: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - name: Install Rust - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable - with: - toolchain: stable - - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 - - name: "Is lockfile updated?" - run: cargo update --workspace --locked - rustfmt: - name: rustfmt - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - name: Install Rust - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable - with: - toolchain: "1.95" # STABLE - components: rustfmt - - name: Initialize cache - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 - - name: Check formatting - run: cargo fmt --check diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml deleted file mode 100644 index ed22572..0000000 --- a/.github/workflows/spelling.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Spelling - -permissions: - contents: read - -on: [pull_request] - -env: - RUST_BACKTRACE: 1 - CARGO_TERM_COLOR: always - CLICOLOR: 1 - -concurrency: - group: "${{ github.workflow }}-${{ github.ref }}" - cancel-in-progress: true - -jobs: - spelling: - name: Spell Check with Typos - runs-on: ubuntu-latest - steps: - - name: Checkout Actions Repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - persist-credentials: false - - name: Spell Check Repo - uses: crate-ci/typos@f8a58b6b53f2279f71eb605f03a4ae4d10608f45 # master diff --git a/.github/zizmor.yml b/.github/zizmor.yml deleted file mode 100644 index 45aa9c9..0000000 --- a/.github/zizmor.yml +++ /dev/null @@ -1,4 +0,0 @@ -rules: - superfluous-actions: - # https://github.com/zizmorcore/zizmor/issues/1817 - disable: true diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 11e2b4a..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -/book diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..f173110 --- /dev/null +++ b/.nojekyll @@ -0,0 +1 @@ +This file makes sure that Github Pages doesn't process mdBook's output. diff --git a/404.html b/404.html new file mode 100644 index 0000000..49d87d9 --- /dev/null +++ b/404.html @@ -0,0 +1,171 @@ + + +
+ + +This URL is invalid, sorry. Please use the navigation bar or search to continue.
+ +Dealing with configurations can be annoying +especially if you support multiple operating systems +which all have their own places +for short- and long-term files.
+There are multiple solutions to this, +some being more low-level than others.
+The easiest crate to use for this is confy.
+It asks you for the name of your application
+and requires you to specify the config layout
+via a struct (that is Serialize, Deserialize)
+and it will figure out the rest!
#[derive(Debug, Serialize, Deserialize)]
+struct MyConfig {
+ name: String,
+ comfy: bool,
+ foo: i64,
+}
+
+fn main() -> Result<(), io::Error> {
+ let cfg: MyConfig = confy::load("my_app")?;
+ println!("{:#?}", cfg);
+ Ok(())
+}
+
+This is incredibly easy to use +for which you of course surrender configurability. +But if a simple config is all you want, +this crate might be for you!
+