Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update rust crate config to 0.14.0 #96

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 16, 2024

This PR contains the following updates:

Package Type Update Change
config dependencies minor 0.1.0 -> 0.14.0

Release Notes

rust-cli/config-rs (config)

v0.14.1

Compare Source

Compatibility
  • MSRV is now 1.75
Internal
  • Remove dependency on lazy_static
  • Update rust-ini from 0.19 to 0.20
  • Switch from yaml-rust to yaml-rust2

v0.14.0

Compare Source

This is a maintenance release, mostly to get some dependency updates out, but
also with some fixes and changes that have piled up over a rather long time.

Features
  • #​100 Fix #​99: expose file::source::FileSource
  • #​318 Add Value::origin()
  • #​379 Add clone to builder state types
  • #​381 env: add a 'convert_case' field to ease dealing with kebab-case
  • #​402 Gate async-traits behind a feature
  • #​413 Attach key to type error generated from Config::get_()
  • #​480 Hide and deprecate AsyncConfigBuilder
Fixes
  • #​306 fix: dot in config name
  • #​334 errors: clarify names of integer types
  • #​343 fix yaml to parse int keys
  • #​353 Use TryInto for more permissive deserialization for integers
  • #​354 Fix uppercase lowercase issues
  • #​374 Fix FIXME in de.rs and value.rs
  • #​395 Fix: Do not use deprecated function
  • #​429 Make the parse list key to lowercase when insert the keys
  • #​465 Fix nested arrays (by reworking array handling)
  • #​481 Fix docs warnings
Dependency updates
  • #​271 Update warp requirement from =0.3.1 to =0.3.2
  • #​316 test: Adopt test-env to fix random test failure
  • #​335 Update MSRV: 1.56.0 -> 1.56.1
  • #​350 Bump actions/checkout from 2.4.0 to 3.0.2
  • #​367 Update ron requirement from 0.7 to 0.8
  • #​373 Update notify (4.0.0 -> 5.0.0)
  • #​375 Update temp-env requirement from 0.2.0 to 0.3.0
  • #​378 Update warp requirement from =0.3.2 to =0.3.3
  • #​382 Bump actions/checkout from 3.0.2 to 3.1.0
  • #​389 Update MSRV: 1.56.1 -> 1.59.0
  • #​403 Bump actions/checkout from 3.1.0 to 3.2.0
  • #​411 Bump actions/checkout from 3.2.0 to 3.3.0
  • #​420 Update MSRV: 1.59.0 -> 1.60.0
  • #​421 Update toml requirement from 0.5 to 0.7
  • #​422 Update MSRV in cron workflow
  • #​425 Bump actions/checkout from 3.3.0 to 3.4.0
  • #​426 Update MSRV: 1.60.0 -> 1.64.0
  • #​427 Bump actions/checkout from 3.4.0 to 3.5.0
  • #​430 Update warp requirement from =0.3.3 to =0.3.4
  • #​433 Bump actions/checkout from 3.5.0 to 3.5.1
  • #​434 Bump actions/checkout from 3.5.1 to 3.5.2
  • #​436 Update warp requirement from =0.3.4 to =0.3.5
  • #​437 Update rust-ini requirement from 0.18 to 0.19
  • #​438 Update notify requirement from ^5.0.0 to ^6.0.0
  • #​440 Bump actions/checkout from 3.5.2 to 3.5.3
  • #​441 Update indexmap requirement from 1.7.0 to 2.0.0
  • #​451 Bump actions/checkout from 3.5.3 to 3.6.0
  • #​453 Bump actions/checkout from 3.6.0 to 4.0.0
  • #​455 MSRV: 1.64.0 -> 1.66.0
  • #​456 Update toml requirement from 0.7 to 0.8
  • #​458 Update MSRV in cron job
  • #​459 Bump actions/checkout from 4.0.0 to 4.1.0
  • #​462 Update warp requirement from =0.3.5 to =0.3.6
  • #​477 Bump actions/checkout from 4.1.0 to 4.1.1
  • #​483 Update MSRV: 1.66.0 -> 1.70.0
  • #​503 Bump actions/setup-python from 4 to 5
Misc
  • #​188 Add test for log::Level deserialization
  • #​274 move 'must_use' attribute to struct for 'builder' types
  • #​283 Add cron job
  • #​299 docs(builder): fix typo in doc comment
  • #​344 Fix clippy: Derive Eq as well
  • #​347 Fix clippy: use first() instead of get(0)
  • #​348 actions: Remove "minimal" setting, as workflow does not support this key
  • #​356 refactoring deserialize-any in config
  • #​359 Add test to deserialize unsigned int
  • #​360 Duplicate test for type conversion with unsigned int
  • #​362 Run clippy only on MSRV
  • #​363 Backport CHANGELOG entry for 0.13.2
  • #​388 Add documentation to File required setter
  • #​392 Add simple example using lazy_static
  • #​393 More clippy fixes
  • #​396 Replace actions rs
  • #​401 Backport changelog
  • #​404 Replace fixupmerge with gitlint
  • #​406 Fix clippy: Remove unnecessary cast
  • #​410 Copy member docs to builder functions
  • #​416 Replace actions-rs with run scripts
  • #​423 Fix clippy: Remove needless borrowed reference
  • #​445 Update license field following SPDX 2.1 license expression standard
  • #​460 Use weak features for preserve_order
  • #​469 chore: Use a common method in parsers to check root is a table
  • #​471 Clippy exact toolchains
  • #​479 docs: Example for conditionally loading sources
  • #​485 Add DCO
  • #​488 Unify deser impl (redux)
  • #​489 deserialize: strings: Introduce string_serialize_via_display macro
  • #​507 Check external types
  • #​511 Fix: cargo-check-external-types must use nightly 2023-10-10

v0.13.4

Compare Source

v0.13.3

Compare Source

Please note that we had to update the MSRV for this crate from 1.56.0 to 1.59.0
for this patch release being possible, because a transitive dependency did
update its MSRV.

v0.13.2

Compare Source

  • Backport of #​316 to be testing with temp_env. The backport was necessary to
    be able to backport the next change. This change shouldn't be user-visible.
  • Backport of #​353 to use TryInto for more permissive deserialization of
    integers
  • Backport of commit 518a3cafa1e62ba7405709e5c508247e328e0a18 from #​362 to
    fix tests

v0.13.1

Compare Source

  • typo in doc comment for ConfigBuilder #​299
  • dot in config file name handling fixed #​306

v0.13.0

Compare Source

  • Prefix-Separator support was added #​292
  • Environment lists can now be parsed #​255
  • Setting an overwrite from an Option was added #​303
  • Option to keep the prefix from an environment variable was added #​298
  • Some small doc/CI fixes #​307, #​309
  • MSRV was updated to 1.56.0 #​304
  • Dependencies were updated #​289, #​301

v0.12.0

Compare Source

Format support changes in this version
Other noteworthy changes
  • A new ConfigBuilder interface for building configuration objects #​196
  • Asynchronous sources #​207
  • Custom ENV separators are now supported #​185
  • Loads of dependency updates and bugfixes of course
  • Preserved map order #​217
  • Support for parsing numbers from the environment #​137
  • Support for unsigned integers #​178
  • Format trait for (custom) file formats #​219
Deprecated
  • Environment::new() - see #​235
  • Large parts of the Config interface - see #​196
    • Config::merge()
    • Config::with_merged()
    • Config::refresh()
    • Config::set_default()
    • Config::set()
    • Config::set_once()
    • Config::deserialize()

v0.11.0

  • The Config type got a builder-pattern with_merged() method #​166.
  • A Config::set_once() function was added, to set an value that can be
    overwritten by Config::mergeing another configuration #​172
  • serde_hjson is, if enabled, pulled in without default features.
    This is due to a bug in serde_hjson, see #​169 for more information.
  • Testing is done on github actions #​175

v0.10.1

  • Allow enums as configuration keys #​119

v0.10.0

  • Remove lowercasing of keys (unless the key is coming from an environment variable).
  • Update nom to 5.x

v0.9.3

Compare Source

  • Support deserializing to a struct with #[serde(default)] #​106

v0.9.2

Compare Source

  • Support reading enums from configuration. #​85
  • Improvements to error path (attempting to propagate path). #​89
  • Fix UB in monomorphic expansion. We weren't re-exporting dependent types. #​91

v0.9.1

Compare Source

  • Allow Environment variable collection to ignore empty values. #​78
    // Empty env variables will not be collected
    Environment::with_prefix("APP").ignore_empty(true)

v0.9.0

Compare Source

  • Breaking Change: Environment does not declare a separator by default.

    // 0.8.0
    Environment::with_prefix("APP")
    
    // 0.9.0
    Environment::with_prefix("APP").separator("_")
  • Add support for INI. #​72

  • Add support for newtype structs. #​71

  • Fix bug with array set by path. #​69

  • Update to nom 4. #​63

v0.8.0

Compare Source

  • Update lazy_static and yaml_rust

v0.7.1

Compare Source

v0.7.0

Compare Source

  • Fix conflict with serde_yaml. #​39
  • Implement Source for Config.

  • Implement serde::de::Deserializer for Config. my_config.deserialize may now be called as either Deserialize::deserialize(my_config) or my_config.try_into().

  • Remove ConfigResult. The builder pattern requires either .try_into as the final step or the initial Config::new() to be bound to a slot. Errors must also be handled on each call instead of at the end of the chain.

    let mut c = Config::new();
    c
        .merge(File::with_name("Settings")).unwrap()
        .merge(Environment::with_prefix("APP")).unwrap();
    let c = Config::new()
        .merge(File::with_name("Settings")).unwrap()
        .merge(Environment::with_prefix("APP")).unwrap()
        // LLVM should be smart enough to remove the actual clone operation
        // as you are cloning a temporary that is dropped at the same time
        .clone();
    let mut s: Settings = Config::new()
        .merge(File::with_name("Settings")).unwrap()
        .merge(Environment::with_prefix("APP")).unwrap()
        .try_into();

v0.6.0

Compare Source

  • Implement Source for Vec<T: Source> and Vec<Box<Source>>

    Config::new()
        .merge(vec![
            File::with_name("config/default"),
            File::with_name(&format!("config/{}", run_mode)),
        ])
    • Implement From<&Path> and From<PathBuf> for File

    • Remove namespace option for File

    • Add builder pattern to condense configuration

      Config::new()
          .merge(File::with_name("Settings"))
          .merge(Environment::with_prefix("APP"))
          .unwrap()
  • Parsing errors even for non required files – @​Anthony25 ( #​33 )

v0.5.1

Compare Source

  • Added config category to Cargo.toml

v0.5.0

Compare Source

  • config.get has been changed to take a type parameter and to deserialize into that type using serde. Old behavior (get a value variant) can be used by passing config::Value as the type parameter: my_config.get::<config::Value>(".."). Some great help here from @​impowski in #​25.
  • Propagate parse and type errors through the deep merge (remembering filename, line, etc.)
  • Remove directory traversal on File. This is likely temporary. I do want this behavior but I can see how it should be optional. See #​35
  • Add File::with_name to get automatic file format detection instead of manual FileFormat::*@​JordiPolo
  • Case normalization #​26
  • Remove many possible panics #​8
  • my_config.refresh() will do a full re-read from the source so live configuration is possible with some work to watch the file

v0.4.1

Compare Source

v0.4.0

  • Remove global ( config::get ) API — It's now required to create a local configuration instance with config::Config::new() first.

    If you'd like to have a global configuration instance, use lazy_static! as follows:

    use std::sync::RwLock;
    use config::Config;
    
    lazy_static! {
        static ref CONFIG: RwLock<Config> = Default::default();
    }

v0.3.0

  • YAML from @​tmccombs
  • Nested field retrieval
  • Deep merging of sources (was shallow)
  • config::File::from_str to parse and merge a file from a string
  • Support for retrieval of maps and slices — config::get_table and config::get_array

v0.2.0

Initial release.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Dec 16, 2024

⚠️ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path crates/cli/Cargo.toml --workspace
    Updating crates.io index
error: failed to select a version for the requirement `config = "^0.14.0"`
candidate versions found which didn't match: 0.1.0
location searched: /tmp/renovate/repos/github/arunanshub/preload-rs/crates/config
required by package `preload-rs v0.1.0 (/tmp/renovate/repos/github/arunanshub/preload-rs/crates/cli)`

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path crates/kernel/Cargo.toml --workspace
    Updating crates.io index
error: failed to select a version for the requirement `config = "^0.14.0"`
candidate versions found which didn't match: 0.1.0
location searched: /tmp/renovate/repos/github/arunanshub/preload-rs/crates/config
required by package `preload-rs v0.1.0 (/tmp/renovate/repos/github/arunanshub/preload-rs/crates/cli)`

Copy link

coderabbitai bot commented Dec 16, 2024

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@renovate renovate bot changed the title build(deps): update rust crate config to 0.14.0 build(deps): update rust crate config to 0.14.0 - autoclosed Dec 17, 2024
@renovate renovate bot closed this Dec 17, 2024
@renovate renovate bot deleted the renovate/config-0.x branch December 17, 2024 15:59
@renovate renovate bot changed the title build(deps): update rust crate config to 0.14.0 - autoclosed build(deps): update rust crate config to 0.14.0 Dec 17, 2024
@renovate renovate bot reopened this Dec 17, 2024
@renovate renovate bot force-pushed the renovate/config-0.x branch from b25b4d8 to 8177c27 Compare December 17, 2024 16:14
@arunanshub arunanshub closed this Dec 17, 2024
Copy link
Contributor Author

renovate bot commented Dec 17, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.14.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant