Skip to content

Commit 76f96bb

Browse files
committed
add readme for libtock-core
1 parent e441031 commit 76f96bb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

core/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# libtock-core
2+
3+
Core crate of `libtock-rs`. It contains the architecture specific code of `libtock-rs`. In particular:
4+
5+
* the entry point
6+
* `panic` and `alloc_error` handlers
7+
* the syscalls
8+
* the allocator (optional)
9+
10+
It has three important feature flags
11+
12+
* `alloc` - allow for heap. Enables a linked list allocator.
13+
* `custom_panic_handler` - disable the default panic handler and allow definition of a custom one using `#[panic_handler]`
14+
* `custom_alloc_error_handler` - disable the default alloc error handler and allow definition of a custom one using `#[alloc_error_handler]`
15+
16+
## License
17+
18+
Licensed under either of
19+
20+
- Apache License, Version 2.0
21+
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
22+
- MIT license
23+
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
24+
25+
at your option.
26+
27+
### Contribution
28+
29+
Unless you explicitly state otherwise, any contribution intentionally submitted
30+
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
31+
dual licensed as above, without any additional terms or conditions.
32+
33+
The contribution guidelines are identical to those of `libtock-rs` and can be found here: [contribution guidelines](../CONTRIBUTING.md)

0 commit comments

Comments
 (0)