| Crates.io | bobcat-features |
| lib.rs | bobcat-features |
| version | 0.7.19 |
| created_at | 2025-12-29 16:05:02.104725+00 |
| updated_at | 2026-01-23 10:08:51.725802+00 |
| description | bobcat-sdk utilities for feature flagged release on Arbitrum Stylus. |
| homepage | https://bobcat.so |
| repository | https://github.com/stylus-developers-guild/bobcat-sdk |
| max_upload_size | |
| id | 2010807 |
| size | 39,700 |
bobcat-features can be used for feature-driven development using a macro with
bobcat-storage:
bobcat_features!(internal_balances);
Would create a macro that accesses the storage slot for the feature
"bobcat.features.internal_balances" after taking -1 so as to take it off the curve, so
uint256(abi.encodePacked("bobcat.features.internal_balances")) - 1. If true is set, to
the feature flag, then the code associated executes.
IF_FEATURE_INTERNAL_BALANCES!({
// This happens if the flag is turned on:
} else {
// This happens if the flag is turned off:
});