Skip to content

Commit

Permalink
Manually mention required features
Browse files Browse the repository at this point in the history
  • Loading branch information
sholderbach committed Dec 14, 2023
1 parent fd407e6 commit b1230d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1697,6 +1697,9 @@ impl Reedline {
}

/// Adds an external printer
///
/// ## Required feature:
/// `external_printer`
#[cfg(feature = "external_printer")]
pub fn with_external_printer(mut self, printer: ExternalPrinter<String>) -> Self {
self.external_printer = Some(printer);
Expand Down
3 changes: 3 additions & 0 deletions src/external_printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ pub const EXTERNAL_PRINTER_DEFAULT_CAPACITY: usize = 20;
/// An ExternalPrinter allows to print messages of text while editing a line.
/// The message is printed as a new line, the line-edit will continue below the
/// output.
///
/// ## Required feature:
/// `external_printer`
#[cfg(feature = "external_printer")]
#[derive(Debug, Clone)]
pub struct ExternalPrinter<T>
Expand Down
3 changes: 3 additions & 0 deletions src/history/sqlite_backed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const SQLITE_APPLICATION_ID: i32 = 1151497937;
/// A history that stores the values to an SQLite database.
/// In addition to storing the command, the history can store an additional arbitrary HistoryEntryContext,
/// to add information such as a timestamp, running directory, result...
///
/// ## Required feature:
/// `sqlite` or `sqlite-dynlib`
pub struct SqliteBackedHistory {
db: rusqlite::Connection,
session: Option<HistorySessionId>,
Expand Down

0 comments on commit b1230d3

Please sign in to comment.