Mercurial > crates > nonstick
view 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 source
[package] name = "nonstick" description = "PAM bindings for Rust" version = "0.0.6" authors = ["Paul Fisher <paul@pfish.zone>", "Anthony Nowell <anowell@gmail.com>" ] repository = "https://hg.pfish.zone/crates/nonstick/" readme = "README.md" keywords = ["pam", "ffi", "linux", "authentication"] license = "MIT" edition = "2021" [features] # Enable this to actually link against your system's PAM library. link = [] [dependencies] bitflags = "2.9.0" libc = "0.2.97" num-derive = "0.4.2" num-traits = "0.2.19" secure-string = "0.3.0" thiserror = "2.0.12"