Skip to content

Commit d25eebc

Browse files
committed
Deprecate read_slice function as relies on references.
1 parent f600942 commit d25eebc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ repository = "https://github.com/Cryptjar/avr-progmem-rs"
1212

1313
exclude = ["/.cargo/"]
1414

15+
[package.metadata.docs.rs]
16+
all-features = true
17+
1518
# Profiles only needed for the examples to make them compile
1619
[profile.dev]
1720
panic = "abort"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,7 @@ unsafe fn read_value_raw<T>(p_addr: *const T, out: *mut T, len: u8)
829829
/// [`read_value`]: fn.read_value.html
830830
///
831831
#[cfg_attr(feature = "dev", inline(never))]
832+
#[deprecated = "Use read_value() instead"]
832833
pub unsafe fn read_slice(p: &[u8], out: &mut [u8]) {
833834
assert_eq!(p.len(), out.len());
834835
assert!(p.len() <= u8::MAX as usize);

0 commit comments

Comments
 (0)