Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace embedded-time with fugit #54 #57

Merged
merged 33 commits into from
Jan 28, 2022
Merged

Replace embedded-time with fugit #54 #57

merged 33 commits into from
Jan 28, 2022

Conversation

MathiasKoch
Copy link
Member

@MathiasKoch MathiasKoch commented Jan 28, 2022

Overtakes #54 to fix failing CI.

See #54 for discussion on PR.

This rust-lang/cargo#10269 should allow us to rename "defmt-impl" to "defmt" again, once it is in stable

andresv and others added 30 commits November 2, 2021 21:41
And use ublox-sockets that support fugit time crate.
`embedded-time` has some serious issues and moves too slowly and tries to do too much in single lib. Fugit is a time library that was built because some people were not happy to use embedded-time on embedded systems.
Fugit only deals with time conversions and those conversions are done using const generics. So most of the stuff is  happening during compilation.
This is very light weight compared to embedded-time.
the same is used in rtic and it is more clear what it is
#53)

* Make sure the embedded-nal implementations only makes use of error-types from ublox-sockets

* Add embedded-hal-driver keyword to crates.io
# Conflicts:
#	ublox-cellular/Cargo.toml
#	ublox-cellular/src/services/data/tcp_stack.rs
#	ublox-cellular/src/services/data/udp_stack.rs
From trait cannot be used here because Clock error is associated type
fugit is needed for implementing Clock trait therefore it makes sense to reexport it here
on macos dummy gpio support is used
without those it returns immediately without blocking in place
macOS creates those nasty files
@codecov-commenter
Copy link

Codecov Report

Merging #57 (739883b) into master (0d8224f) will increase coverage by 0.01%.
The diff coverage is 16.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #57      +/-   ##
==========================================
+ Coverage   10.00%   10.01%   +0.01%     
==========================================
  Files          54       57       +3     
  Lines        1510     1547      +37     
  Branches      347      368      +21     
==========================================
+ Hits          151      155       +4     
- Misses       1329     1361      +32     
- Partials       30       31       +1     
Impacted Files Coverage Δ
ublox-cellular/src/client.rs 0.00% <0.00%> (ø)
ublox-cellular/src/command/error.rs 12.76% <ø> (ø)
ublox-cellular/src/command/general/responses.rs 0.00% <0.00%> (ø)
...lox-cellular/src/command/ip_transport_layer/urc.rs 0.00% <ø> (ø)
...-cellular/src/command/network_service/responses.rs 0.00% <ø> (ø)
...blox-cellular/src/command/network_service/types.rs 0.00% <ø> (ø)
ublox-cellular/src/command/psn/types.rs 2.85% <ø> (-0.27%) ⬇️
ublox-cellular/src/config.rs 0.00% <0.00%> (ø)
ublox-cellular/src/error.rs 0.00% <0.00%> (ø)
ublox-cellular/src/lib.rs 100.00% <ø> (ø)
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d8224f...739883b. Read the comment docs.

@MathiasKoch MathiasKoch merged commit 3a1ef8b into master Jan 28, 2022
@MathiasKoch MathiasKoch deleted the PR54_new branch January 28, 2022 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants