blob: 5e3e09d13c073e7faf4c24fe3233a865523fff05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# tor-memquota-cost
Cost-tracking trait for use with [`tor-memquota`].
This is a separate crate so that crates that want to add a memory cost to a
struct can do so without depending on the full [`tor-memquota`].
## Compile-time features
* `memquota` -- Actually enable memory quota tracking.
Without this feature, all the actual functionality is stubbed out.
This provides a convenient way of conditionally enabling memory tracking.
* `full` -- Enable all features above.
License: MIT OR Apache-2.0
[`tor-memquota`]: https://docs.rs/tor-memquota/latest/tor_memquota/
|