Skip to content

Commit

Permalink
Merge pull request #9753 from stgraber/master
Browse files Browse the repository at this point in the history
shared/usbid: Document reasons to fork
  • Loading branch information
tomponline authored Jan 4, 2022
2 parents 4e46ec8 + 090675c commit 63791e2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions shared/usbid/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This Go package is a variant of `usbid` from https://github.com/google/gousb.
It was written by the gousb maintainers and contributors and then adapted for use by LXD.

Main changes:
- Doesn't load on import (reduced memory footprint).
- Uses system-local USB database (to always match `lsusb`).
- Doesn't import anything outside of built-in Go packages.
- Doesn't use or indirectly rely on CGO as this code is often used in cross-built static binaries.

Most users will want to stick to the upstream google/gousb version instead.
This fork is really meant for LXD's special use case and may be further trimmed down in the future.

0 comments on commit 63791e2

Please sign in to comment.