mirror of
https://github.com/transistorfet/moa.git
synced 2025-01-02 22:29:40 +00:00
Updated crates
This commit is contained in:
parent
a46d59b191
commit
04fae5edc6
2
.github/workflows/clippy.yaml
vendored
2
.github/workflows/clippy.yaml
vendored
@ -29,4 +29,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Check clippy
|
- name: Check clippy
|
||||||
run: |
|
run: |
|
||||||
cargo clippy
|
cargo clippy --workspace
|
||||||
|
6
.github/workflows/test.yaml
vendored
6
.github/workflows/test.yaml
vendored
@ -31,14 +31,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests with default features
|
- name: Run tests with default features
|
||||||
run: |
|
run: |
|
||||||
cargo test
|
cargo test --workspace
|
||||||
|
|
||||||
- name: Run tests with all features
|
- name: Run tests with all features
|
||||||
run: |
|
run: |
|
||||||
cargo test #--features=std,fugit,femtos
|
cargo test --workspace #--features=std,fugit,femtos
|
||||||
|
|
||||||
- name: Run test with no_std
|
- name: Run test with no_std
|
||||||
run: |
|
run: |
|
||||||
cargo test --no-default-features
|
cargo test --workspace --no-default-features
|
||||||
|
|
||||||
|
|
||||||
|
738
Cargo.lock
generated
738
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -12,10 +12,10 @@ log = "0.4"
|
|||||||
femtos = "0.1"
|
femtos = "0.1"
|
||||||
moa-core = { path = "../../core" }
|
moa-core = { path = "../../core" }
|
||||||
moa-host = { path = "../../libraries/host" }
|
moa-host = { path = "../../libraries/host" }
|
||||||
nix = { version = "0.25", optional = true }
|
nix = { version = "0.28", optional = true, features = ["term", "fs"] }
|
||||||
|
|
||||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||||
cpal = { version = "0.14", optional = true }
|
cpal = { version = "0.15", optional = true }
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||||
cpal = { version = "0.14", optional = true, features = ["wasm-bindgen"] }
|
cpal = { version = "0.15", optional = true, features = ["wasm-bindgen"] }
|
||||||
|
@ -50,9 +50,14 @@ impl CpalAudioOutput {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let stream = device
|
let stream = device
|
||||||
.build_output_stream(&config, data_callback, move |err| {
|
.build_output_stream(
|
||||||
log::error!("ERROR: {:?}", err);
|
&config,
|
||||||
})
|
data_callback,
|
||||||
|
move |err| {
|
||||||
|
log::error!("ERROR: {:?}", err);
|
||||||
|
},
|
||||||
|
None,
|
||||||
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
stream.play().unwrap();
|
stream.play().unwrap();
|
||||||
|
@ -7,7 +7,7 @@ default-run = "moa-computie"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
clap = "^4"
|
clap = "^4"
|
||||||
simple_logger = "^2"
|
simple_logger = "^4"
|
||||||
femtos = "0.1"
|
femtos = "0.1"
|
||||||
|
|
||||||
moa-core = { path = "../../core" }
|
moa-core = { path = "../../core" }
|
||||||
|
@ -6,9 +6,9 @@ default-run = "moa-genesis"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
minifb = "^0.19"
|
minifb = "^0.25"
|
||||||
clap = "^4"
|
clap = "^4"
|
||||||
simple_logger = "^2"
|
simple_logger = "^4"
|
||||||
femtos = "0.1"
|
femtos = "0.1"
|
||||||
|
|
||||||
moa-core = { path = "../../core" }
|
moa-core = { path = "../../core" }
|
||||||
|
@ -3,5 +3,5 @@ use moa_systems_macintosh::build_macintosh_512k;
|
|||||||
fn main() {
|
fn main() {
|
||||||
let matches = moa_minifb::new("Macintosh 512k Emulator").get_matches();
|
let matches = moa_minifb::new("Macintosh 512k Emulator").get_matches();
|
||||||
|
|
||||||
moa_minifb::run(matches, |frontend| build_macintosh_512k(frontend));
|
moa_minifb::run(matches, build_macintosh_512k);
|
||||||
}
|
}
|
||||||
|
@ -320,20 +320,16 @@ impl MiniFrontend {
|
|||||||
//println!("ran simulation for {:?}us in {:?}us (avg: {:?}us)", frame_time.as_micros(), sim_time, frame_time.as_micros() as f64 / sim_time as f64);
|
//println!("ran simulation for {:?}us in {:?}us (avg: {:?}us)", frame_time.as_micros(), sim_time, frame_time.as_micros() as f64 / sim_time as f64);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(keys) = window.get_keys_pressed(minifb::KeyRepeat::No) {
|
for key in window.get_keys_pressed(minifb::KeyRepeat::No) {
|
||||||
for key in keys {
|
self.check_key(key, true);
|
||||||
self.check_key(key, true);
|
|
||||||
|
|
||||||
// Process special keys
|
// Process special keys
|
||||||
if let Key::D = key {
|
if let Key::D = key {
|
||||||
run_debugger = true;
|
run_debugger = true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let Some(keys) = window.get_keys_released() {
|
for key in window.get_keys_released() {
|
||||||
for key in keys {
|
self.check_key(key, false);
|
||||||
self.check_key(key, false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(sender) = self.mouse.as_mut() {
|
if let Some(sender) = self.mouse.as_mut() {
|
||||||
|
Loading…
Reference in New Issue
Block a user