| Crates.io | bjrs |
| lib.rs | bjrs |
| version | 0.1.1 |
| created_at | 2026-01-16 08:32:22.440798+00 |
| updated_at | 2026-01-16 08:37:28.503626+00 |
| description | A blackjack game engine with optional no_std support. |
| homepage | https://github.com/waki285/bjrs |
| repository | https://github.com/waki285/bjrs |
| max_upload_size | |
| id | 2048172 |
| size | 113,407 |
A blackjack game engine with optional no_std support.
GameOptionsstd by default, no_std + alloc supported (enable alloc)use bjrs::{Game, GameOptions};
let options = GameOptions::default();
let game = Game::new(options, 42);
let player_id = game.join(1_000);
game.start_betting();
game.bet(player_id, 50).unwrap();
game.deal().unwrap();
// Player actions, dealer play, and showdown omitted here.
See examples/cli_blackjack.rs for a complete playable CLI example.
By default this crate uses std. To opt into no_std:
[dependencies]
bjrs = { version = "0.1", default-features = false, features = ["alloc"] }
Licensed under either of: