Giter VIP home page Giter VIP logo

Comments (4)

michaelkirk avatar michaelkirk commented on July 19, 2024

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.

stephan-j-lange avatar stephan-j-lange commented on July 19, 2024

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.

from geographiclib-rs.

michaelkirk avatar michaelkirk commented on July 19, 2024

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.

stephan-j-lange avatar stephan-j-lange commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.