Code Monkey home page Code Monkey logo

rsofa's Introduction

rsofa

Current Crates.io Version

rsofa is a library to provide International Astronomical Union's (http://www.iau.org/) SOFA library (http://www.iausofa.org/) in rust.

rsofa is not a port of SOFA routines but uses bindgen to create a direct wrapper for the SOFA C library. rosfa is not officially endorsed by the International Astronomical Union.

Although still pre-1.0 release the package represents a complete wrapping of the SOFA C library. The only future work to do would be to implement additional test coverage to ensure agreement with C implementation. However given the auto-generated nature of the crate and direct C interface the likelihood of deviation is low.

SOFA Version History

Package Version SOFA Release
v0.5 2023-10-11
v0.4 2021-05-12
v0.3 2021-01-25
v0.2 2020-07-21
v0.1 2019-07-22

Update Process

Whenever a new version of the IAU SOFA C library is released, if that update includes the addition or deletion of a function in the library. the build.rs file should be updated to reflect the change. New functions should be added to the build list and deprecated functions removed.

Note, ./extern/sofa.h must be updated by coping the contents of ./extern/src/sofa.h with the following line adjusted out:

// #include "math.h"

This prevents bindgen generating bindings from the C math.h headers which cause later problems in the build process. It also points the headers to include the official release of sofam.h without duplicating it at the same level.

The bindings can be generated manually with:

cargo install bindgen
bindgen ./extern/src/sofa.h -o ./src/bindings.rs

License

The wrapper package is licensed under the MIT License.

In addition to the MIT license, any use of this module should comply with SOFA's license and terms of use which is reproduced in the license file.

Specifically, but not exclusively, any published work or commercial products which includes results achieved by using rsofa shall acknowledge that the SOFA software was used in obtaining those results.

rsofa's People

Contributors

duncaneddy avatar jwfxpr avatar striezel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.