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

Easier usage for projects #7

Open
jmeggitt opened this issue Oct 18, 2018 · 5 comments
Open

Easier usage for projects #7

jmeggitt opened this issue Oct 18, 2018 · 5 comments

Comments

@jmeggitt
Copy link

jmeggitt commented Oct 18, 2018

Could this be put on crates.io or could the binaries be included on Github? I would like to have some easy way to use this library such as being able to copy paste a dependency into the cargo.toml.

I am not completely sure where to get the sim binaries required to compile this though, and I doubt others will either without some extra documentation.

ctre-rs = "2.3.4" ctre-rs = {git = "..."}

@auscompgeek
Copy link
Member

Once wpilib-sys is published on crates.io, I'll work on getting this published as well.

@auscompgeek
Copy link
Member

auscompgeek commented Oct 19, 2018

Currently verifying that ctre 0.6.1 compiles fine with wpilib-sys 0.2.3. Uploaded ctre-sys 5.4.0 and ctre 0.6.1.

The published ctre-sys 5.4.0 will only have the CCI library for athena, as it is intended to strictly track Phoenix releases. (The code in build.rs is to accommodate for simulation libraries in Phoenix 5.8.)

I'm currently working on rearchitecting the ctre-sys crate for Phoenix 5.7 - I plan to have a separate ctre-data crate to hold structs and enums that will have serde support (as I would like to see the Configuration structs have serde support to accommodate anticipate team usage).

@auscompgeek
Copy link
Member

auscompgeek commented Oct 19, 2018

Also note that currently ctre-sys will not successfully link without the WPILib HAL, as I haven't been able to find a solution to the weird NI libraries linkage situation yet (and I probably won't be able to).

@Lytigas
Copy link

Lytigas commented Oct 20, 2018

If packaging and/or using static libraries in wpilib-sys where possible would make things easier, that's something I could do. I'm fairly sure the NI libraries are included on the RIO by default.

@auscompgeek
Copy link
Member

auscompgeek commented Oct 20, 2018

There's no issue with wpilib-sys here - in fact a robot program should build and link fine with wpilib-sys. The problem is with the NI libraries, which WPILib has had a workaround for in the HAL since the dawn of time.

Statically linking to libwpiHal probably could break any programs that interface with the roboRIO hardware. Maybe. Looking again at WPILib's tooling, they do provide a Gradle task to build static libraries. Huh.

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

No branches or pull requests

3 participants