Add untested Cargo feature for untested functionality
This adds an `untested` feature to any functions which have not yet been tested live against a YubiKey device (which is presently pretty much everything). This sets a clear expectation of what is presently supported, and additionally documents the status in the README (and a series of GitHub issues). Adds a `cargo build --all-features` to GitHub Actions' `test` step in order to make sure that `untested` functionality still compiles.
This commit is contained in:
@@ -64,6 +64,7 @@ impl Response {
|
||||
}
|
||||
|
||||
/// Create a new response from the given status words and buffer
|
||||
#[cfg(feature = "untested")]
|
||||
pub fn new(status_words: StatusWords, buffer: Buffer) -> Response {
|
||||
Response {
|
||||
status_words,
|
||||
@@ -77,6 +78,7 @@ impl Response {
|
||||
}
|
||||
|
||||
/// Get the raw [`StatusWords`] code for this response.
|
||||
#[cfg(feature = "untested")]
|
||||
pub fn code(&self) -> u32 {
|
||||
self.status_words.code()
|
||||
}
|
||||
@@ -92,6 +94,7 @@ impl Response {
|
||||
}
|
||||
|
||||
/// Consume this response, returning its buffer
|
||||
#[cfg(feature = "untested")]
|
||||
pub fn into_buffer(self) -> Buffer {
|
||||
self.buffer
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user