Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ comline-core = { git = "https://github.com/ComlineProject/core", rev = "622500a3
# 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 = "2df0e4bb837e9facd36106a6ea1ef9b936cc084d", optional = true }
comline-codegen-typescript = { git = "https://github.com/ComlineProject/comline-typescript", rev = "4ad1c3574a342d974e83a94570d51d903ea32bbe", optional = true }
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 }

[features]
# Which language generators are compiled in. Drop one to shed its whole
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/end_to_end.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn client_and_provider_over_duplex() {
let notes_for_svc = notes.clone();

// Provider: the generated `serve` helper runs the connection handshake
// (IR_HASH + format name) before serving.
// (IR_HASH + format and framing names) before serving.
let provider = thread::spawn(move || {
let mut provider_side = provider_side;
ChatDispatcher(Svc { notes: notes_for_svc })
Expand Down
4 changes: 2 additions & 2 deletions tests/cli/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ fn comline_toml_default_framing_reaches_the_rust_generator() {
let chat = fs::read_to_string(project.join("generated/rust/chat.rs")).unwrap();
assert!(chat.contains("comline_runtime::framing::JsonRpcFraming"));
assert!(chat.contains("Client::connect_with_framing"));
assert!(!chat.contains("FRAMING_DATAGRAM"));
assert!(!chat.contains("Client::connect(transport, format, IR_HASH)"));
}

#[test]
Expand All @@ -225,7 +225,7 @@ fn without_comline_toml_a_protocol_stays_on_datagram_framing() {
.success();

let chat = fs::read_to_string(project.join("generated/rust/chat.rs")).unwrap();
assert!(chat.contains("FRAMING_DATAGRAM"));
assert!(chat.contains("Client::connect(transport, format, IR_HASH)"));
assert!(!chat.contains("JsonRpcFraming"));
}

Expand Down
Loading