Skip to content

Commit 320e0ee

Browse files
dybucctgross35
authored andcommitted
linux_l4re: annotate unstable *NUM constants
Some symbols are not stable. New upstream releases may change them. This works out badly with SemVer. Advising users is necessary.
1 parent 1b06eb5 commit 320e0ee

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/unix/linux_like/linux_l4re_shared.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,9 @@ pub const EI_CLASS: usize = 4;
683683
pub const ELFCLASSNONE: u8 = 0;
684684
pub const ELFCLASS32: u8 = 1;
685685
pub const ELFCLASS64: u8 = 2;
686+
687+
/// This symbol is prone to change across releases upstream.
688+
/// See the [usage guidelines](crate#usage-guidelines) for details.
686689
pub const ELFCLASSNUM: usize = 3;
687690

688691
pub const EI_DATA: usize = 5;
@@ -812,6 +815,9 @@ pub const EM_ALPHA: u16 = 0x9026;
812815
// elf.h - Legal values for e_version (version).
813816
pub const EV_NONE: u32 = 0;
814817
pub const EV_CURRENT: u32 = 1;
818+
819+
/// This symbol is prone to change across releases upstream.
820+
/// See the [usage guidelines](crate#usage-guidelines) for details.
815821
pub const EV_NUM: u32 = 2;
816822

817823
// elf.h - Legal values for p_type (segment type).

0 commit comments

Comments
 (0)