update & remove some unused stuff

This commit is contained in:
2026-01-25 12:48:09 +01:00
parent ea7296c449
commit 2ed6cd3c06
9 changed files with 962 additions and 1014 deletions

View File

@@ -1,7 +1,7 @@
[package]
name = "gdriver-common"
version = "0.1.0"
edition = "2021"
edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -15,10 +15,10 @@ futures.workspace = true
lazy_static.workspace = true
tracing-subscriber.workspace = true
google-drive3.workspace = true
confique={ version = "0.2" }
thiserror = "1.0"
confique = { version = "0.4.0", features = ["toml"] }
thiserror = "2.0.18"
anyhow = "1.0.79"
directories = "5.0"
directories = "6.0.0"
serde_json = "1.0.111"
#[patch.crates-io]
#confique = {path="~/Documents/git/OMGeeky/confique "}

View File

@@ -1,6 +1,6 @@
use super::*;
use crate::prelude::*;
use confique::{Config, Partial};
use confique::{Config, Layer};
use std::net::{IpAddr, Ipv6Addr};
const IP_DEFAULT: IpAddr = IpAddr::V6(Ipv6Addr::LOCALHOST);
#[derive(Debug, Serialize, Deserialize, Config, Clone)]
@@ -19,7 +19,7 @@ pub fn load_config_with_path(path: &Path) -> Result<Configuration> {
fn add_default_locations(
builder: confique::Builder<Configuration>,
) -> confique::Builder<Configuration> {
type P = <Configuration as Config>::Partial;
type P = <Configuration as Config>::Layer;
let prebuilt = P {
ip: Some(IP_DEFAULT),
..P::empty()