diff --git a/Cargo.lock b/Cargo.lock index 3a38646..0f5c43d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -398,7 +398,7 @@ dependencies = [ [[package]] name = "comline-codegen" version = "0.1.0" -source = "git+https://github.com/ComlineProject/generation?rev=350bbce6e88caf65e60449e3ebd0e1d45eb19179#350bbce6e88caf65e60449e3ebd0e1d45eb19179" +source = "git+https://github.com/ComlineProject/generation?rev=46ff2b0f98af9c3b6cf92a15f4cf311ef4c19d64#46ff2b0f98af9c3b6cf92a15f4cf311ef4c19d64" dependencies = [ "comline-core", "eyre", @@ -408,7 +408,7 @@ dependencies = [ [[package]] name = "comline-codegen-rust" version = "0.1.0" -source = "git+https://github.com/ComlineProject/comline-rust?rev=4d3709a7dcf483bb76dbe7450a64bf7034c0e2d9#4d3709a7dcf483bb76dbe7450a64bf7034c0e2d9" +source = "git+https://github.com/ComlineProject/comline-rust?rev=7a2c04c871be6ee13ed7e9a64f45b72babda7790#7a2c04c871be6ee13ed7e9a64f45b72babda7790" dependencies = [ "comline-codegen", "comline-core", @@ -418,7 +418,7 @@ dependencies = [ [[package]] name = "comline-codegen-typescript" version = "0.1.0" -source = "git+https://github.com/ComlineProject/comline-typescript?rev=526259a68fdbda4515b2e502ac53b5a272bbe30d#526259a68fdbda4515b2e502ac53b5a272bbe30d" +source = "git+https://github.com/ComlineProject/comline-typescript?rev=0309d82a8871fc459143ddde653fc8f395571588#0309d82a8871fc459143ddde653fc8f395571588" dependencies = [ "comline-codegen", "comline-core", @@ -428,7 +428,7 @@ dependencies = [ [[package]] name = "comline-core" version = "0.1.0" -source = "git+https://github.com/ComlineProject/core?rev=622500a39a49ad4118cdce9344531cf6f0f5978d#622500a39a49ad4118cdce9344531cf6f0f5978d" +source = "git+https://github.com/ComlineProject/core?rev=bd9d9f4557e56db1dbcece1b6fae54c1fc5394fd#bd9d9f4557e56db1dbcece1b6fae54c1fc5394fd" dependencies = [ "ariadne", "blake3", @@ -455,7 +455,7 @@ dependencies = [ [[package]] name = "comline-core-stdlib" version = "0.1.0" -source = "git+https://github.com/ComlineProject/core?rev=622500a39a49ad4118cdce9344531cf6f0f5978d#622500a39a49ad4118cdce9344531cf6f0f5978d" +source = "git+https://github.com/ComlineProject/core?rev=bd9d9f4557e56db1dbcece1b6fae54c1fc5394fd#bd9d9f4557e56db1dbcece1b6fae54c1fc5394fd" [[package]] name = "concolor" diff --git a/Cargo.toml b/Cargo.toml index 49ee39f..9d8ee81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,15 +30,15 @@ toml = "0.8" # needs real I/O (git fetch, filesystem), so it's off by default for # `comline-core`'s wasm32 consumers (the playground editor, the language # server); the CLI is the one consumer that actually runs `comline build`. -comline-core = { git = "https://github.com/ComlineProject/core", rev = "622500a39a49ad4118cdce9344531cf6f0f5978d", features = ["deps"] } +comline-core = { git = "https://github.com/ComlineProject/core", rev = "bd9d9f4557e56db1dbcece1b6fae54c1fc5394fd", features = ["deps"] } # All three pinned to revs that agree on one `comline-codegen`, and bumped # together: comline-rust and comline-typescript's codegen crates consume # `comline-codegen`'s types, so the rev below must be byte-identical to the # one *they* pin - Cargo only unifies a git dependency across identical rev # strings, and two copies of `GenRequest` are two incompatible types. -comline-codegen = { git = "https://github.com/ComlineProject/generation", rev = "350bbce6e88caf65e60449e3ebd0e1d45eb19179" } -comline-codegen-rust = { git = "https://github.com/ComlineProject/comline-rust", rev = "4d3709a7dcf483bb76dbe7450a64bf7034c0e2d9", optional = true } -comline-codegen-typescript = { git = "https://github.com/ComlineProject/comline-typescript", rev = "526259a68fdbda4515b2e502ac53b5a272bbe30d", optional = true } +comline-codegen = { git = "https://github.com/ComlineProject/generation", rev = "46ff2b0f98af9c3b6cf92a15f4cf311ef4c19d64" } +comline-codegen-rust = { git = "https://github.com/ComlineProject/comline-rust", rev = "7a2c04c871be6ee13ed7e9a64f45b72babda7790", optional = true } +comline-codegen-typescript = { git = "https://github.com/ComlineProject/comline-typescript", rev = "0309d82a8871fc459143ddde653fc8f395571588", optional = true } [features] # Which language generators are compiled in. Drop one to shed its whole diff --git a/src/changes.rs b/src/changes.rs index d0b6a28..71888b2 100644 --- a/src/changes.rs +++ b/src/changes.rs @@ -1,6 +1,7 @@ //! Rendering for `comline_core`'s [`SchemaChanges`], shared by `build` and `diff`. use comline_core::schema::ir::diff::{BreakingChange, Modification, NewFeature, SchemaChanges}; +use comline_core::schema::ir::unverified; use crate::ui; @@ -219,6 +220,14 @@ fn breaking_line(change: &BreakingChange) -> String { value_change(old_value, new_value) ), ), + BreakingChange::GaveUpGuarantees { target, guarantees } => mark( + "🔓", + "-", + format!( + "`{target}` now gives up {}", + unverified::describe(guarantees) + ), + ), } } @@ -316,6 +325,14 @@ fn feature_line(feature: &NewFeature) -> String { mark("🔧", "~", format!("Validation loosened on `{target}`")) } NewFeature::Deprecated { target } => mark("⚠️", "!", format!("Deprecated `{target}`")), + NewFeature::RestoredGuarantees { target, guarantees } => mark( + "🔒", + "+", + format!( + "`{target}` keeps {} again", + unverified::describe(guarantees) + ), + ), } } diff --git a/src/commands/add.rs b/src/commands/add.rs index 65106fc..6faf593 100644 --- a/src/commands/add.rs +++ b/src/commands/add.rs @@ -94,6 +94,7 @@ pub fn run(work_dir: &Path, name: &str, source: Source, pin: bool) -> Result<()> let mut dependency = DependencyConfig { name: name.to_string(), + accept_unverified: Default::default(), source: match &source { Source::Path(dir) => DependencySource::Path { path: dir.clone(), @@ -523,6 +524,7 @@ mod tests { let before = declared_dependencies(&manifest).unwrap(); let dependency = DependencyConfig { name: "shared".to_string(), + accept_unverified: Default::default(), source: DependencySource::Path { path: "../shared".into(), hash: Some("blake3:abc".to_string()) }, }; let updated = with_dependency(&manifest, "shared", &entry_fields(&dependency).unwrap());