Skip to content

Commit 85277eb

Browse files
committed
Initial commit
0 parents  commit 85277eb

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
debug/
2+
target/
3+
Cargo.lock
4+
**/*.rs.bk
5+
*.pdb

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 LibrePCB
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Interactive HTML BOM Generator
2+
3+
A Rust library implementing a subset of
4+
[InteractiveHtmlBom](https://github.com/openscopeproject/InteractiveHtmlBom),
5+
to generate Bill of Materials for PCBs as an interactive HTML page.
6+
See their project description for details, and check out the example output
7+
[here](https://openscopeproject.org/InteractiveHtmlBomDemo/).
8+
9+
This library does not re-implement the complete functionality of the upstream
10+
project. Instead, it re-uses their HTML/CSS/JS files and provides a minimal
11+
high-level API to perform just the HTML generation. Differences to the
12+
upstream project:
13+
14+
- Rust instead of Python
15+
- No CLI, just a Rust library
16+
- Not a plugin for EDA tools
17+
- No parser for EDA project files
18+
- Stripped down support of the
19+
[`pcbdata`](https://github.com/openscopeproject/InteractiveHtmlBom/blob/f9a419b2b19bcb86dd81c61f0b7feba8dffce9f4/DATAFORMAT.md) structure, especially
20+
missing support for any geometry type other than `polygon` with `svgdata`
21+
since this type is enough to draw any kind of shape
22+
23+
The library has been developed for integration in
24+
[LibrePCB](https://librepcb.org/), though it's API is generic and thus would
25+
be usable for other projects too.
26+
27+
## License and Credits
28+
29+
Library is licensed under MIT license, see [`LICENSE`](./LICENSE) for details.
30+
31+
A huge thanks to the developers of
32+
[InteractiveHtmlBom](https://github.com/openscopeproject/InteractiveHtmlBom)
33+
who created the awesome HTML/CSS/JS which we're reusing in this project.
34+
35+
The implementation of this library was funded by the
36+
[NGI Zero Commons Fund](https://nlnet.nl/commonsfund/) as part of the
37+
[LibrePCB 2.0](https://nlnet.nl/project/LibrePCB2.0/) project.

0 commit comments

Comments
 (0)