#producer #consumer

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

#2 in #consumer

Download history 194/week @ 2022-06-04 10/week @ 2022-06-11 17/week @ 2022-06-18 8/week @ 2022-06-25 38/week @ 2022-07-02 38/week @ 2022-07-09 74/week @ 2022-07-16 73/week @ 2022-07-23 40/week @ 2022-07-30 23/week @ 2022-08-06 18/week @ 2022-08-13 70/week @ 2022-08-20 10/week @ 2022-08-27 24/week @ 2022-09-03 49/week @ 2022-09-10 12/week @ 2022-09-17

126 downloads per month
Used in 3 crates

MIT license

52KB
1.5K SLoC

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.


lib.rs:

Defines interfaces used by [Agent]s 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.

Dependencies

~230–640KB
~15K SLoC