Skip to content

Commit 4f928a9

Browse files
committed
docs: document external dependencies for sys crate
1 parent 491444a commit 4f928a9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

openthread-sys/src/lib.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
//! Low-level bindings to the OpenThread library.
2+
//!
3+
//! # External dependencies
4+
//!
5+
//! Openthread depends on functions from the C standard library. These are not
6+
//! provided directly by this crate, but are expected to be linked by the user
7+
//! in some way.
8+
//!
9+
//! The following functions are required:
10+
//!
11+
//! - `int iscntrl(int c)`
12+
//! - `int isprint(int c)`
13+
//! - `int isupper(int c)`
14+
//! - `[[noreturn]] void exit(int status)`
15+
//!
16+
//! The following functions are required, but this crate already provides an
17+
//! implementation for them:
18+
//!
19+
//! - `int snprintf(char* s, size_t n, const char* format, ...)`
20+
//! - `int vsnprintf(char* s, size_t n, const char* format, va_list arg)`
21+
//!
22+
//! Note that this list is likely to change over time.
23+
124
#![no_std]
225
#![allow(unknown_lints)]
326

0 commit comments

Comments
 (0)