tenebrous-dicebot/src
projectmoon bf4ce24b79 Better public API for user variables, avoid allocations in Context.
The database API for user variables has changed somewhat again, this
time closer to the proper vision. There are now two separate sled
Trees in the Variables struct, one for user-defined variables, and one
for counts. Keys have been changed to be username-first, then room ID.
The signatures of the functions now also use a strongly-typed struct,
UserAndRoom.

As part of this, the Context object now once again avoids allocating
new strings.

Other random changes included here:
 - Remove tempfile crate in favor of sled temporary db config.
 - Add bincode crate in anticipation of future (de)serializing.
2020-11-03 20:31:29 +00:00
..
bin Better public API for user variables, avoid allocations in Context. 2020-11-03 20:31:29 +00:00
cofd Better public API for user variables, avoid allocations in Context. 2020-11-03 20:31:29 +00:00
commands Better public API for user variables, avoid allocations in Context. 2020-11-03 20:31:29 +00:00
cthulhu Fix cthulhu advancement rolls, add remaining dice tests. 2020-11-01 19:29:09 +00:00
db Better public API for user variables, avoid allocations in Context. 2020-11-03 20:31:29 +00:00
dice cargo fix and fmt 2020-04-21 00:09:43 -06:00
bot.rs Do not respond to or log ignored commands. 2020-11-01 12:20:45 +00:00
cofd.rs Move CofD dice rolling into dice.rs file under cofd/ 2020-08-27 23:56:19 +00:00
commands.rs Better public API for user variables, avoid allocations in Context. 2020-11-03 20:31:29 +00:00
config.rs Better public API for user variables, avoid allocations in Context. 2020-11-03 20:31:29 +00:00
context.rs Better public API for user variables, avoid allocations in Context. 2020-11-03 20:31:29 +00:00
cthulhu.rs Implement parsing of Cthulhu dice, only basic for now. 2020-10-31 20:51:17 +00:00
db.rs Better public API for user variables, avoid allocations in Context. 2020-11-03 20:31:29 +00:00
dice.rs cargo fix and fmt 2020-04-21 00:09:43 -06:00
error.rs Centralize common parsing code. 2020-10-31 20:51:17 +00:00
help.rs Update help for new dice pool syntax. 2020-10-16 22:20:46 +00:00
lib.rs Basic implementation of CoC dice rolling. 2020-10-31 20:51:17 +00:00
parser.rs Implement parsing of Cthulhu dice, only basic for now. 2020-10-31 20:51:17 +00:00
roll.rs Implement Chronicles of Darkness dice system, improve error handling. 2020-08-23 21:24:04 +00:00
state.rs Remove actix, move state to RwLock. Update dependencies. 2020-10-18 20:37:02 +00:00
variables.rs Centralize common parsing code. 2020-10-31 20:51:17 +00:00