Comments (4)
I'm not immediately able to reproduce your issue. I've just added a compilable example with #55 which successfully builds.
Can you tell me the output of cargo --version
?
from geographiclib-rs.
I'm using the following cargo version:
cargo 1.75.0 (1d8b05cdd 2023-11-20)
My test program is pretty much the example that you are providing.
use geographiclib_rs::{Geodesic, DirectGeodesic};
fn main() {
// Determine the point 10000 km NE of JFK - the "direct" geodesic calculation.
let g = Geodesic::wgs84();
let jfk_lat = 40.64;
let jfk_lon = -73.78;
let northeast_azimuth = 45.0;
let (lat, lon, az) = g.direct(jfk_lat, jfk_lon, northeast_azimuth, 10e6);
use approx::assert_relative_eq;
assert_relative_eq!(lat, 32.621100463725796);
assert_relative_eq!(lon, 49.05248709295982);
assert_relative_eq!(az, 140.4059858768007);
}
Is it maybe a problem of lazy_static? It has not been maintained for years and there are alternatives available in the standard library now.
- https://crates.io/crates/lazy_static/versions
- Maybe this issue is somehow related: https://stackoverflow.com/questions/77710297/encountered-e0195-lifetime-parameters-or-bounds-on-type-target-do-not-match
from geographiclib-rs.
Are you able to clone this repository and build the examples?
CI shows that it's possible: #55
Is it maybe a problem of lazy_static? It has not been maintained for years and there are alternatives available in the standard library now.
I think it's been stable for years, so it hasn't needed much maintenance.
But yes there are alternatives in std now. Would you be interested in opening a PR to migrate? And do the research to know which MSRV introduced the alternatives so you know what we'd need to bump our MSRV to?
from geographiclib-rs.
Hello Michael,
I have reinstalled Rust and now it works and I can compile the example application.
I still don't understand the reason, but the issue was obviously not related to your repository.
Sorry for the inconvenience!
Kind regards,
Stephan
from geographiclib-rs.
Related Issues (20)
- add integrated CI testing vs geographiclib C++ implementation HOT 21
- add Karney's standard unit tests HOT 1
- Update benchmarks HOT 6
- resolve test_arcdirect failure HOT 1
- fix test_std_geodesic_geodsolve2 test failure
- fix test_std_geodesic_geodsolve15 failure
- fix test_std_geodesic_geodsolve26 failure HOT 1
- fix test_std_geodesic_geodsolve28 failure
- fix test_std_geodesic_geodsolve29 failure HOT 1
- fix test_std_geodesic_geodsolve76 failure HOT 1
- fix test_std_geodesic_geodsolve78 failure HOT 1
- fix test_geodtest_geodesic_direct12 S12 behavior
- review test_geodtest_geodesic_direct21 lon2 and azi2 tolerances
- fix test_geodtest_geodesic_inverse12 S12 behavior HOT 1
- investigate test_geodtest_geodesic_inverse12 behavior for azi1/azi2/m12
- improve performance HOT 2
- make geomath::norm use &mut arguments HOT 1
- Make lazy_static optional? HOT 5
- Release 0.2.2? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geographiclib-rs.