Giter VIP home page Giter VIP logo

pcan-basic-sys's Introduction

pcan-basic-sys

crates Documentation Crate License Dependency Status

Rust bindings for version V4.6.2 of the PCAN-Basic API provided by the PEAK-System Technik GmbH.

Installation

Windows

  • Install the PCAN-Basic API driver
  • Install Rust
  • Install a Rust Windows toolchain. Install at least one of the following toolchains:
    • rustup toolchain install stable-i686-pc-windows-gnu
    • rustup toolchain install stable-x86_64-pc-windows-gnu
    • rustup toolchain install stable-i686-pc-windows-msvc
    • rustup toolchain install stable-x86_64-pc-windows-msvc
  • Use pcan-basic-sys as a dependency

If you choose MSVC you need to install the Visual Studio toolchain.

Linux

  • Install the PCAN-Basic API driver
  • Install Rust
  • Install a Rust Linux toolchaib. Other Linux toolchains might work as well. Install at least on of the following toolchains:
    • rustup toolchain install stable-i686-unknown-linux-gnu
    • rustup toolchain install stable-x86_64-unknown-linux-gnu
  • Use pcan-basic-sys as a dependency

License / Terms of Usage

The source code of this project is licensed under the MIT/Apache-2.0 license. This implies that you are free to use, share, and adapt it. However, please give appropriate credit by citing the project.

Please read the End User License Agreement of the company PEAK-System Technik GmbH at:

PEAK-System Technik GmbH grants the right to the customer to use the files in this software package as long as this is done in connection with original hardware by PEAK-System or OEM hardware coming from PEAK-System. It is NOT allowed to use any of these files (even not parts) with third-party hardware.

If you are not sure whether you have acquired an appropriate license with the used hardware, please contact our technical support team ([email protected]).

Contact

If you have problems using the software, find mistakes, or have general questions please use the issue tracker to contact us.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MIT/Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Contributors

pcan-basic-sys's People

Contributors

cwoodall avatar tsabelmann avatar zach-thomas-distek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pcan-basic-sys's Issues

Unauthorized use of the "PCAN" trademark

Dear Mr. Sabelmann,
Dear Mr. Woodall,

We discovered your crate, pcan-basic-sys, on crates.io. Please note that PCAN is a registered trademark of PEAK-System Technik GmbH.

We would like to kindly request you to change the name of your package/library/files. Please do not use our registered trademark PCAN in file names, description text or other publications. We ask that you make the changes by May 31, 2024.

If we discover further trademark infringements in your software, libraries, files, etc. (including file names) after this period, we reserve the right to take legal action against you.

Thank you for your understanding.

Best regards
PEAK-System Technik GmbH

Building for 32 bit Windows

Not sure if I'm doing something wrong, but when I build the library for 32-bit with cargo build --target=i686-pc-windows-msvc on a 64-bit machine, I end up with a 64-bit PCANBasic.lib.

I think it has to do with build.rs checking target_arch against the build script's target arch? I'm pretty new with Rust and especially using native libraries, so I don't really know. It does seem to build for 32-bit if I hardcode let machine = "/Machine:X86";

Thanks for making this binding library! It's gotten me up and running much quicker than I could have on my own.

Does not compile on rust 1.42.0

~$>cargo --version
cargo 1.42.0 (86334295e 2020-01-31)
error[E0423]: expected function, tuple struct or tuple variant, found struct `ast::Name`
   --> C:\Users\zthomas\.cargo\registry\src\github.com-1ecc6299db9ec823\syntex_syntax-0.58.1\src\symbol.rs:146:27
    |
146 |                       name: ast::Name($index),
    |                             ^^^^^^^^^
...
165 | / declare_keywords! {
166 | |     // Invalid identifier
167 | |     (0,  Invalid,        "")
168 | |
...   |
231 | |     (56, CrateRoot, "{{root}}")
232 | | }
    | |_- in this macro invocation

error: aborting due to previous error

The crate bindgen 0.24.0 depends on crate syntex_syntax 0.58.1

Is it possible to update to the latest version of bindgen which does not depend on syntex_syntax?

Release to Cargo

Hello @zachatttack @thebeekeeper.

You two seem to be using this repo more than me. Should we possibly find a github group to move this to, or a piece of the rust community working on this to transfer ownership to so this can be well supported?

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.