743 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
9feb664722
Merge pull request #408 from rust-embedded/fix-pa-feature
Release v0.8.0
v0.8.0
2023-11-08 14:54:52 +00:00
Dario Nieuwenhuis
f089e9c915 Release v0.8.0 2023-11-07 20:10:43 +01:00
Dario Nieuwenhuis
f66932381c Fix portable-atomic-x feature not enabling portable-atomic. 2023-11-07 20:10:43 +01:00
Alex Martens
ac26e82503
Merge pull request #405 from newAM/docs-update
docs: modernize intra doc links
2023-11-07 19:07:42 +00:00
Alex Martens
402d3cc436
Merge pull request #404 from newAM/rm-vec-const-assert
Vec: remove do-nothing assertion
2023-11-07 18:56:15 +00:00
Alex Martens
4799f8ce10 docs: modernize intra doc links 2023-10-31 21:06:44 -07:00
Alex Martens
c6e7c8fda5 Vec: remove do-nothing assertion 2023-10-31 17:42:07 -07:00
Alex Martens
45517a50e9
Merge pull request #348 from Foundation-Devices/jeandudey/mut_slice
Make Vec::as_mut_slice public
2023-10-31 17:59:38 +00:00
Jean-Pierre De Jesus DIAZ
29954b4a65
Make Vec::as_mut_slice public
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-10-31 17:02:56 +01:00
Dario Nieuwenhuis
f2900068de
Merge pull request #402 from rust-embedded/fix-indexmap
Fix IndexMap entry API, fix CI.
2023-10-31 15:36:15 +00:00
Dario Nieuwenhuis
2be6a9a690 ci: add test, simplify a bit. 2023-10-31 02:43:53 +01:00
Dario Nieuwenhuis
2d16444571 Fix CI. 2023-10-31 02:43:53 +01:00
Dario Nieuwenhuis
92b72b1334 indexmap: add another previously-failing assert. 2023-10-31 02:43:53 +01:00
Shaun Bennett
a4bfe3e655 indexmap: use correct index when inserting through entry api
When inserting using the entry API and the robin-hood case is hit,
we currently return using the incorrect index, which in turn
returns a reference to the wrong entry in the map, causing
undefined behaviour in the API.
2023-10-31 02:21:45 +01:00
Dario Nieuwenhuis
83801651b6
Merge pull request #363 from schultetwin1/add_remove_to_string
Implement `remove` for String
2023-10-31 00:11:27 +00:00
Dario Nieuwenhuis
11e4f1e19e
Merge pull request #370 from fililip/main
Implement #367
2023-10-30 23:57:43 +00:00
Alex Martens
73029aca49
Merge pull request #400 from rust-embedded/simplify-atomics
Simplify atomic availability detection.
2023-10-30 23:32:33 +00:00
Dario Nieuwenhuis
f58e509664 Simplify atomic availability detection.
- `cfg(target_has_atomic)` is stable now, use that.
- Hardcode in `build.rs` the list of targets with load/store but no CAS,
  since `cfg(target_has_atomic_load_store)` is not stable yet.
- Do not try to autodetect whether `portable-atomic` is needed or not,
  just let the user control it directly. If the user doesn't explicitly
  enable `portable-atomic` and native atomics are unavailable, the
  features requiring it will be missing.
2023-10-31 00:02:03 +01:00
Dario Nieuwenhuis
ccd3801c30
Merge pull request #399 from newAM/string-from-utf8
String: add from_utf8
2023-10-30 22:54:32 +00:00
Alex Martens
4a300b5c5f String: add from_utf8 2023-10-30 15:03:58 -07:00
Dario Nieuwenhuis
db324a3ae0
Merge pull request #398 from newAM/add-merge-group
CI: add build.yml to merge group
2023-10-30 21:33:59 +00:00
Alex Martens
60b2938cec CI: add build.yml to merge group 2023-10-30 14:26:00 -07:00
Dario Nieuwenhuis
6e9b0436e6
Merge pull request #397 from newAM/impl-try-from-string
string: replace From<&str> with TryFrom<&str>
2023-10-30 21:24:09 +00:00
Alex Martens
11603de25f string: replace From<&str> with TryFrom<&str> 2023-10-30 14:20:44 -07:00
Dario Nieuwenhuis
7e6bff31a7
Merge pull request #328 from Dirbaio/portable-atomic
Use `portable-atomic` instead of `atomic-polyfill`.
2023-10-30 21:17:47 +00:00
Dario Nieuwenhuis
f9ae8639e9
Merge pull request #396 from newAM/bump-edition
edition: 2018 -> 2021
2023-10-30 21:17:38 +00:00
Alex Martens
35a20c0297 edition: 2018 -> 2021 2023-10-30 14:11:15 -07:00
Dario Nieuwenhuis
8f6dc813d6 Use portable-atomic instead of atomic-polyfill. 2023-10-30 22:00:34 +01:00
Alex Martens
90942787f7
Merge pull request #394 from rust-embedded/update-readme
README: add team ownership
2023-10-21 03:16:15 +00:00
Alex Martens
1fd7183c96
Merge pull request #393 from rust-embedded/ufmt-0.2
ufmt: 0.1 -> 0.2
2023-10-21 03:15:40 +00:00
Alex Martens
b38f6ffc3a README: add team ownership 2023-10-21 09:34:53 +09:00
Dario Nieuwenhuis
63b4b6397b
Merge pull request #392 from rust-embedded/rm-actions-rs
CI: actions-rs -> dtolnay
2023-10-20 23:57:33 +00:00
Alex Martens
ffc396cb79 ufmt: 0.1 -> 0.2 2023-10-21 08:57:28 +09:00
Alex Martens
1decffb3b6 CI: actions-rs -> dtolnay 2023-10-21 08:46:24 +09:00
Alex Martens
7d3282b838
Merge pull request #350 from rjsberry/fix-aarch64-llsc
Fix pool (mis)compile on AArch64
2023-10-20 23:33:08 +00:00
Richard Berry
8cdd497fa5 Fix pool (mis)compile on AArch64
The LLSC probe in `build.rs` checks for the presence of the
`clrex` instruction and assumes the target also has both `ldrex`
and `strex`.

In AArch64 `clrex` is a known mnemonic but `ldrex` and `strex`
are not. This caused the `arm_llsc` feature (and subsequently the
oiik module) to be included in the crate for AArc64 which is invalid.
2023-10-21 08:26:53 +09:00
Dario Nieuwenhuis
357f82cb62
Merge pull request #389 from rust-embedded/remove-spin
Minor cleanups
2023-10-20 22:34:40 +00:00
Alex Martens
4efc8df95e
Merge pull request #390 from rust-embedded/update-gha
Update GHA
2023-10-20 22:31:21 +00:00
Dario Nieuwenhuis
b7a65ef3ae use more readable single-line syntax in Cargo.toml. 2023-10-21 00:27:12 +02:00
Alex Martens
5f8981bd5f Update GHA 2023-10-21 07:22:07 +09:00
Dario Nieuwenhuis
24bfda59cb thread scopes are stable now. 2023-10-21 00:00:21 +02:00
Dario Nieuwenhuis
11929c5bcb Remove unused dependency spin. 2023-10-20 23:56:56 +02:00
Dario Nieuwenhuis
1797fb247d
Merge pull request #386 from newAM/add-coc
Add code of conduct
2023-10-20 21:44:02 +00:00
Alex Martens
f3fb36ae04 Add code of conduct 2023-10-20 23:43:41 +02:00
Dario Nieuwenhuis
52188b369f
Merge pull request #384 from newAM/update-url
Update repository URL
2023-10-20 21:43:16 +00:00
Alex Martens
07a961182b Update repository URL 2023-10-20 23:43:03 +02:00
Dario Nieuwenhuis
40468da658
Merge pull request #388 from newAM/fix-linear-map-drop
Fix dropping_references warning
2023-10-20 21:39:11 +00:00
Dario Nieuwenhuis
a4e8f82160 Fix tsan tests.
from [this](https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html#threadsanitizer)

> To work correctly ThreadSanitizer needs to be "aware" of all synchronization operations in a program. It generally achieves that through \[...\] and compile time instrumentation (e.g. atomic operations). Using it without instrumenting all the program code can lead to false positive reports.

and the example uses -Zbuild-std ... of course, std has to be instrumented. Adding -Zbuild-std fixes it, indeed.
2023-10-20 23:35:23 +02:00
Dario Nieuwenhuis
199a8d8819 enable github merge queue. 2023-10-20 23:08:04 +02:00
Dario Nieuwenhuis
4d0f2e2016 Merge branch 'fix-testcfail' into fix-linear-map-drop 2023-10-20 23:04:34 +02:00