Mercurial > crates > nonstick
diff Cargo.toml @ 74:c7c596e6388f
Make conversations type-safe (last big reorg) (REAL) (NOT CLICKBAIT)
In previous versions of Conversation, you could send messages and then
return messages of the wrong type or in the wrong order or whatever.
The receiver would then have to make sure that there were the right
number of messages and that each message was the right type.
That's annoying.
This change makes the `Message` enum a two-way channel, where the asker
puts their question into it, and then the answerer (the conversation)
puts the answer in and returns control to the asker. The asker then
only has to pull the Answer of the type they wanted out of the message.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Fri, 06 Jun 2025 22:21:17 -0400 |
parents | 9f8381a1c09c |
children | 351bdc13005e |
line wrap: on
line diff
--- a/Cargo.toml Thu Jun 05 03:41:38 2025 -0400 +++ b/Cargo.toml Fri Jun 06 22:21:17 2025 -0400 @@ -9,9 +9,12 @@ license = "MIT" edition = "2021" +[features] +# Enable this to actually link against your system's PAM library. +link = [] + [dependencies] bitflags = "2.9.0" -derive_more = { version = "2.0.1", features = ["from"] } libc = "0.2.97" num-derive = "0.4.2" num-traits = "0.2.19"