Commit Graph
82 Commits
Author SHA1 Message Date
BriocheBerlinandGitHub 775f94626e Update README.md (#52) 2021-07-15 18:21:48 +02:00
Johann HemmannandGitHub 52981902eb Merge pull request #51 from Sh3Rm4n/main
Disable test harness for lib target
2021-06-06 23:33:41 +02:00
Fabian Viöl 1ebc0ac43f Disable test harness for lib target
Without this change, if `testsuite/src/lib.rs` will be crated and `cargo
test` is invoked, cargo will try to link libtest with the crate.

As this crate is `no_std` and will usually be run for targets, where no
std library exists and therefor also no libtest, this will fail with an
error similar to this:

    error[E0463]: can't find crate for `test`

    error: aborting due to previous error

    For more information about this error, try `rustc --explain E0463`.
    error: could not compile `testsuite`

To circumvent this issue, disable the harness for lib as well.

Because the crates lib.rs is handled as a binary for test mode,
rust will look for a main function.
Add a minimal lib.rs, so that it will compile and run, when
test is invoked.
2021-06-06 16:10:08 +02:00
Jorge AparicioandGitHub ec32e79165 Merge pull request #50 from knurling-rs/fix-format
`README`: Fix formatting
2021-05-10 12:51:07 +00:00
Johann Hemmann 93e4f21e4f README: Fix formatting 2021-05-10 14:42:01 +02:00
Johann HemmannandGitHub 9e46054e03 Merge pull request #49 from knurling-rs/doc-ra-linked-projects
`README.md`: Document `rust-analyzer.linkedProjects`
2021-04-13 13:05:09 +02:00
Urhengulas 5737b08a58 README.md: Document rust-analyzer.linkedProjects 2021-04-13 11:44:19 +02:00
Johann HemmannandGitHub d0aa56c67d Merge pull request #42 from knurling-rs/update-defmt-0.2.0
Update to defmt 0.2.0
2021-02-26 23:04:48 +01:00
Jorge AparicioandGitHub 7cd0af3b4f Merge pull request #48 from afajl/main
Document that compilation target must be added with rustup
2021-02-26 14:05:38 +01:00
Paul Diaconescu 59b7c6a1f3 Add missing backticks 2021-02-26 10:16:48 +01:00
Johann HemmannandGitHub 4e9a879cec Update README.md 2021-02-26 09:26:23 +01:00
Paul Diaconescu 99a17be671 Document that compilation target must be added with rustup 2021-02-25 23:03:14 +01:00
Jorge AparicioandGitHub 08ebad9350 Merge pull request #43 from knurling-rs/test-release-debuginfo
add debuginfo to `test --release`
2021-02-24 15:26:59 +01:00
Jorge Aparicio c915534a05 add debuginfo to test --release 2021-02-24 14:58:50 +01:00
Jonas SchievinkandGitHub b61bdada9b Merge pull request #44 from knurling-rs/optimize-test-profile
also enable optimizations in the `test` profile
2021-02-24 14:53:51 +01:00
Jorge Aparicio 9200fbe95d also enable optimizations in the test profile
Cargo doc says:

> Note that when using the cargo test and cargo bench commands, the test/bench profiles only apply to the final test executable. Dependencies will continue to use the dev/release profiles.

So with the current settings, `cargo test` optimizes all dependencies but not the top level
crate (e.g. `test/foo.rs`)

This commit adds optimizations to the last `rustc` invocation of `cargo test`. This results in a 6%
reduction in binary size when doing `cargo test` on our sample test file.
2021-02-24 14:43:35 +01:00
Urhengulas 34b68a19f1 Get timestamp with interrupt disabled
This makes `app-template` support more platforms (i.e. `thumbv6`).
2021-02-22 23:26:47 +01:00
Urhengulas d1c9fa9920 Update docs 2021-02-22 22:30:25 +01:00
Urhengulas 5f8bc597c0 Update example code 2021-02-22 22:24:38 +01:00
Urhengulas 1d0750653f Update dependencies 2021-02-22 22:16:41 +01:00
Jonas SchievinkandGitHub 19ec8c4dce Merge pull request #39 from knurling-rs/update_readme
README.md: update to new probe-run usage, new nrf hal version
2021-01-21 20:09:54 +01:00
Lotte Steenbrink 55b8b30624 README.md: update to new probe-run usage, new nrf hal version 2021-01-21 20:04:07 +01:00
Lotte SteenbrinkandGitHub 9fc4f7bc5e Merge pull request #37 from knurling-rs/rm-dead-link
Remove dead link to patch
2020-12-21 14:50:29 +01:00
Jonas Schievink 5dd8a83db8 Remove dead link to patch 2020-12-21 14:44:17 +01:00
Jorge AparicioandGitHub d6d88d27e2 Merge pull request #33 from knurling-rs/override-assert-macros
testsuite: import defmt assert macros
2020-12-11 12:03:44 +00:00
Jorge Aparicio 2a34a5279d testsuite: import defmt assert macros
these imports will override the ones from the core prelude
2020-12-11 12:29:03 +01:00
Jorge AparicioandGitHub d75aea3ce0 Merge pull request #31 from knurling-rs/jonas-schievink-patch-1
Actually use the defmt assertion macros
2020-12-07 10:37:10 +00:00
Jorge AparicioandGitHub 2063370ab7 Merge pull request #32 from knurling-rs/jonas-schievink-patch-2
Remove `--defmt` flag from probe-run
2020-12-07 10:35:32 +00:00
Jonas SchievinkandGitHub 7c4954fd67 Remove --defmt flag from probe-run
This now gets automatically detected
2020-12-03 00:16:14 +01:00
Jonas SchievinkandGitHub 2d901d63db Actually use the defmt assertion macros 2020-12-01 22:05:41 +01:00
Jorge AparicioandGitHub 8f9e7e606e Merge pull request #30 from knurling-rs/panic
use defmt::assert; add defmt::panic_hnadler
2020-11-30 16:30:37 +00:00
Jorge Aparicio 0c324d336c use defmt::panic instead of core::panic in example 2020-11-30 17:29:47 +01:00
Jorge Aparicio ae0df60ec2 use defmt::assert; add defmt::panic_handler 2020-11-24 17:38:08 +01:00
Jorge AparicioandGitHub 647289a660 Merge pull request #29 from knurling-rs/defmt-test
use defmt-test in the test suite
2020-11-16 16:54:46 +01:00
Jorge Aparicio 6c5aa23717 remove unused import 2020-11-16 16:13:45 +01:00
Jorge AparicioandGitHub f12e76f0f9 Merge pull request #28 from knurling-rs/no-funding-for-the-clones
don't include .github/FUNDING.yml in generated instances
2020-11-16 11:55:36 +01:00
Jorge Aparicio 955d99d962 update diff in README 2020-11-13 15:50:09 +01:00
Jorge Aparicio fbd9d93138 use defmt-test in the test suite 2020-11-13 15:45:03 +01:00
Jorge Aparicio e5cf89b4eb use defmt-test in the test suite 2020-11-13 15:42:07 +01:00
Lotte SteenbrinkandGitHub c99696db98 Merge pull request #27 from knurling-rs/how-to-switch-to-git-version
document how to switch to the git version of defmt
2020-11-12 18:02:17 +01:00
Jorge Aparicio e4f6307625 explain the commented out Cargo.toml bits 2020-11-12 17:56:36 +01:00
Jorge Aparicio 2016a52900 don't include .github/FUNDING.yml in generated instances
fixes #24
2020-11-12 17:48:51 +01:00
Jorge Aparicio 1aac949a44 document how to switch to the git version of defmt 2020-11-12 13:51:46 +01:00
Jorge AparicioandGitHub 43b3690f17 Merge pull request #26 from knurling-rs/website-link
README: update knurling link to website
2020-11-12 11:52:41 +01:00
Jorge AparicioandGitHub 7793e3a756 Merge pull request #23 from knurling-rs/nmagic-linkers
pass --nmagic to the linker
2020-11-12 11:51:16 +01:00
Lotte Steenbrink aaa97eee1c README: update knurling link to website 2020-11-12 11:40:36 +01:00
Jorge AparicioandGitHub ac180e7ecd Merge pull request #22 from knurling-rs/crates-io
use crates.io versions
2020-11-12 11:10:06 +01:00
Jorge AparicioandGitHub 79bf25e15d Merge pull request #25 from knurling-rs/jonas-schievink-patch-1
Remove proc macro opt-level override
2020-11-12 11:09:22 +01:00
Jonas SchievinkandGitHub d9e8e49464 Remove proc macro opt-level override
I believe Cargo now does this by default
2020-11-11 22:40:52 +01:00
Jorge Aparicio f9ef620f50 pass --nmagic to the linker
rationale is in https://github.com/rust-embedded/cortex-m-quickstart/pull/95
we want to avoid potentially running into that issue in the future
2020-11-11 16:32:21 +01:00