Skip to content

Commit

Permalink
Clean up examples and lint with no features
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdyer committed Jul 3, 2024
1 parent a59f2e4 commit 016cb3f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,27 @@ crossbeam = "0.8"
default = ["prerecorded", "live"]
live = ["dep:tungstenite", "dep:tokio-tungstenite"]
prerecorded = []

[[example]]
name = "prerecorded_from_file"
required-features = ["prerecorded"]

[[example]]
name = "callback"
required-features = ["prerecorded"]

[[example]]
name = "make_prerecorded_request_builder"
required-features = ["prerecorded"]

[[example]]
name = "microphone_stream"
required-features = ["live"]

[[example]]
name = "prerecorded_from_url"
required-features = ["prerecorded"]

[[example]]
name = "simple_stream"
required-features = ["live"]
2 changes: 1 addition & 1 deletion src/transcription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub mod prerecorded;
///
/// [api]: https://developers.deepgram.com/api-reference/#transcription
#[derive(Debug, Clone)]
pub struct Transcription<'a>(&'a Deepgram);
pub struct Transcription<'a>(#[allow(unused)] &'a Deepgram);

impl Deepgram {
/// Construct a new [`Transcription`] from a [`Deepgram`].
Expand Down

0 comments on commit 016cb3f

Please sign in to comment.