Skip to content

Commit

Permalink
Merge pull request #210 from martinling/reorganise
Browse files Browse the repository at this point in the history
Reorganise source code
  • Loading branch information
miek authored Oct 31, 2024
2 parents 83331c6 + e72d11a commit 1901bac
Show file tree
Hide file tree
Showing 32 changed files with 1,502 additions and 1,326 deletions.
2 changes: 2 additions & 0 deletions src/backend/cynthion.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! USB capture backend for Cynthion.
use std::cmp::Ordering;
use std::collections::VecDeque;
use std::time::Duration;
Expand Down
2 changes: 2 additions & 0 deletions src/backend/ice40usbtrace.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! USB capture backend for iCE40-usbtrace.
use std::collections::VecDeque;
use std::sync::mpsc;
use std::time::Duration;
Expand Down
2 changes: 2 additions & 0 deletions src/backend/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! The backend API for USB capture devices.
use std::collections::BTreeMap;
use std::sync::mpsc;
use std::thread::{JoinHandle, spawn, sleep};
Expand Down
2 changes: 2 additions & 0 deletions src/backend/transfer_queue.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Helper type for managing a queue of USB bulk transfers.
use std::sync::mpsc;

use anyhow::{Context, Error};
Expand Down
2 changes: 2 additions & 0 deletions src/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Code to be executed at build time.
fn main() {
built::write_built_file().expect("Failed to acquire build-time information");
}
Loading

0 comments on commit 1901bac

Please sign in to comment.