#producer-consumer #market #consumer #producer

no-std market

Infrastructure for producers and consumers

28 breaking releases

0.30.1 Aug 9, 2021
0.29.0 Aug 2, 2021
0.27.1 Apr 5, 2021
0.26.0 Feb 8, 2021
0.7.0 Mar 31, 2020

#1052 in Rust patterns

Download history 71/week @ 2024-12-09 4/week @ 2025-02-03 12/week @ 2025-02-10 7/week @ 2025-02-17

106 downloads per month
Used in 3 crates

MIT license

56KB
1.5K SLoC

Defines interfaces used by Agents to act upon a market.

An Agent can be either a Producer that stores goods into the market or a Consumer that retrieves goods from the market. While an Agent is acting upon a market, it is immutable.


market

Infrastructure for producers and consumers.

The core purpose of this library is to define the traits of items that interact with markets. A market holds goods in a stock. Producers store goods in the stock while consumers retrieve goods from the stock.

Dependencies

~1.5MB
~38K SLoC