Syntax cleanup, fixed never-ending test suite (console in doc-test)
This commit is contained in:
parent
f46cde7ef0
commit
3d4de8b268
11 changed files with 161 additions and 92 deletions
10
README.md
10
README.md
|
|
@ -126,10 +126,14 @@ use rusty_emu::system_config::SystemFactory;
|
|||
|
||||
// Create system from JSON configuration
|
||||
let factory = SystemFactory::new();
|
||||
let mut system = factory.create_from_json("configs/mcs4_basic.json") ?;
|
||||
let system = factory.create_from_json("configs/mcs4_basic.json") ?;
|
||||
|
||||
// Run simulation
|
||||
system.run();
|
||||
// Get system information
|
||||
let info = system.get_system_info();
|
||||
println!("Created system: {} with {} components", info.name, info.component_count);
|
||||
|
||||
// Run simulation (in a real application)
|
||||
// system.run();
|
||||
```
|
||||
|
||||
### Command Line Usage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue