mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
Get the docs building
This commit is contained in:
parent
352658f23f
commit
b593b90701
|
@ -23,8 +23,7 @@ bilge = "0.1"
|
|||
rustc-hash = { version = "1", default-features = false }
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
default-target = "thumbv6m-none-eabi"
|
||||
targets = []
|
||||
default-target = "thumbv4t-none-eabi"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 3
|
||||
|
|
|
@ -334,7 +334,7 @@ impl SoundChannel {
|
|||
}
|
||||
|
||||
/// Sets the point at which the sample should restart once it loops. Does nothing
|
||||
/// unless you also call [`should_loop()`].
|
||||
/// unless you also call [`should_loop()`](SoundChannel::should_loop()).
|
||||
///
|
||||
/// Useful if your song has an introduction or similar.
|
||||
#[inline(always)]
|
||||
|
|
|
@ -78,7 +78,7 @@ unsafe fn transfer_align4_thumb<T: Copy>(mut dst: *mut T, mut src: *const T) {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(not(doc), instruction_set(arm::a32))]
|
||||
#[instruction_set(arm::a32)]
|
||||
#[allow(unused_assignments)]
|
||||
unsafe fn transfer_align4_arm<T: Copy>(mut dst: *mut T, mut src: *const T) {
|
||||
let size = mem::size_of::<T>();
|
||||
|
@ -168,14 +168,14 @@ unsafe fn exchange<T>(dst: *mut T, src: *const T) -> T {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(not(doc), instruction_set(arm::a32))]
|
||||
#[instruction_set(arm::a32)]
|
||||
unsafe fn exchange_align4_arm<T>(dst: *mut T, i: u32) -> u32 {
|
||||
let out;
|
||||
asm!("swp {2}, {1}, [{0}]", in(reg) dst, in(reg) i, lateout(reg) out);
|
||||
out
|
||||
}
|
||||
|
||||
#[cfg_attr(not(doc), instruction_set(arm::a32))]
|
||||
#[instruction_set(arm::a32)]
|
||||
unsafe fn exchange_align1_arm<T>(dst: *mut T, i: u8) -> u8 {
|
||||
let out;
|
||||
asm!("swpb {2}, {1}, [{0}]", in(reg) dst, in(reg) i, lateout(reg) out);
|
||||
|
|
4
justfile
4
justfile
|
@ -29,8 +29,8 @@ doctest-agb:
|
|||
(cd agb && cargo test --doc -Z doctest-xcompile)
|
||||
|
||||
check-docs:
|
||||
(cd agb && cargo doc --target=thumbv6m-none-eabi --no-deps)
|
||||
(cd tracker/agb-tracker && cargo doc --target=thumbv6m-none-eabi --no-deps)
|
||||
(cd agb && cargo doc --target=thumbv4t-none-eabi --no-deps)
|
||||
(cd tracker/agb-tracker && cargo doc --target=thumbv4t-none-eabi --no-deps)
|
||||
just _build_docs agb-fixnum
|
||||
just _build_docs agb-hashmap
|
||||
|
||||
|
|
|
@ -23,3 +23,6 @@ debug = true
|
|||
opt-level = 3
|
||||
lto = "fat"
|
||||
debug = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
default-target = "thumbv4t-none-eabi"
|
||||
|
|
Loading…
Reference in a new issue