All Projects → sonos → Dinghy

sonos / Dinghy

Licence: other
Easier cross-compilation for phones and single boards computers

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Dinghy

Awesome Test Automation
A curated list of awesome test automation frameworks, tools, libraries, and software for different programming languages. Sponsored by http://sdclabs.com
Stars: ✭ 4,712 (+1855.19%)
Mutual labels:  testing-tools, mobile
Androiddocumentviewer
Android 文档查看: word、excel、ppt、pdf,使用mupdf及tbs
Stars: ✭ 235 (-2.49%)
Mutual labels:  mobile
Goreplay
As your application grows, the effort required to test it also grows exponentially. GoReplay offers you the simple idea of reusing your existing traffic for testing, which makes it incredibly powerful. Our state of art technique allows you to analyze and record your application traffic without affecting it. This eliminates the risks that come with putting a third party component in the critical path.
Stars: ✭ 14,981 (+6116.18%)
Mutual labels:  testing-tools
Loggerpro
An modern and pluggable logging framework for Delphi
Stars: ✭ 231 (-4.15%)
Mutual labels:  mobile
Previewimage Mobile
仿微信js-sdk wx.previewImage javascript实现,支持图片预览,滑动切换,双指缩放,图片缓存;Support for picture preview, slide switch, double finger zoom, picture caching
Stars: ✭ 228 (-5.39%)
Mutual labels:  mobile
Keen Slider
The HTML touch slider carousel with the most native feeling
Stars: ✭ 3,097 (+1185.06%)
Mutual labels:  mobile
Junit Dataprovider
A TestNG like dataprovider runner for JUnit with many additional features
Stars: ✭ 226 (-6.22%)
Mutual labels:  testing-tools
Swaks
Swaks - Swiss Army Knife for SMTP
Stars: ✭ 239 (-0.83%)
Mutual labels:  testing-tools
Deceive
🎩 Appear offline for the League of Legends client.
Stars: ✭ 233 (-3.32%)
Mutual labels:  mobile
Mockito Scala
Mockito for Scala language
Stars: ✭ 231 (-4.15%)
Mutual labels:  testing-tools
Titanium mobile
🚀 Native iOS- and Android- Apps with JavaScript
Stars: ✭ 2,553 (+959.34%)
Mutual labels:  mobile
Htmltestrunner
A Test Runner in python, for Human Readable HTML Reports
Stars: ✭ 228 (-5.39%)
Mutual labels:  testing-tools
Walletconnect Monorepo
WalletConnect Monorepo
Stars: ✭ 230 (-4.56%)
Mutual labels:  mobile
Realm Cocoa
Realm is a mobile database: a replacement for Core Data & SQLite
Stars: ✭ 14,778 (+6031.95%)
Mutual labels:  mobile
Grapefruit
(WIP) Runtime Application Instruments for iOS. Previously Passionfruit
Stars: ✭ 235 (-2.49%)
Mutual labels:  mobile
React Native Dynamic Search Bar
Medium Article: https://freakycoder.com/react-native-library-dynamic-search-bar-c03fea9fae36
Stars: ✭ 225 (-6.64%)
Mutual labels:  mobile
Testrocket
Super simple Ruby testing library
Stars: ✭ 229 (-4.98%)
Mutual labels:  testing-tools
Cordova Osx
Apache Cordova mac
Stars: ✭ 232 (-3.73%)
Mutual labels:  mobile
Objectexporter
Object Exporter lets you export out an object while debugging in Visual Studio, the object can be serialized in either C#, JSON or XML.
Stars: ✭ 240 (-0.41%)
Mutual labels:  testing-tools
Gradle Cargo Plugin
Gradle plugin that provides deployment capabilities to local and remote containers via Cargo
Stars: ✭ 238 (-1.24%)
Mutual labels:  cargo

Dinghy

rustc >= 1.40.0 MIT/Apache 2 Build and test

What?

Dinghy is a cargo extension to bring cargo workflow to cross-compilation situations.

Dinghy is specifically useful with "small" processor-based devices, like Android and iOS phones, or small single board computers like the Raspberry Pi. Situations where native compilation is not possible, or not practical.

Initially tests and benches were the primary objective of Dinghy, but now at Snips we use it to cross-compile our entire platform. This includes setting up the stage for cc and pkg-config crates in one single place.

If you are a Rust library author, you can run your tests and benches on your smartphone in minutes. And you should, at least once in a while.

Demo

Let's try how BurntSushi's byteorder handles f32 on a few arm devices, two smartphones, and a Raspberry Pi.

Demo

Phew. It works.

How?

Once dinghy knows about your toolchains and devices, you will be able to run tests and benches from a simple cargo command in any cargo project, most of the time without altering them.

Just add dinghy -d some_device between cargo and its subcommand:

cargo dinghy -d my_android test
cargo dinghy -d my_raspberry bench

By default, without -d, Dinghy will make a native build, just like cargo would do.

Getting started

Depending on your targets and your workstation, the ease of setting up Dinghy can vary.

  • Android is relatively easy, specifically if you already are a mobile developer.
  • iOS setup has a lot of steps, but at least Apple provides everything you will need. Once again, if you are an iOS developer, most of the heavy lifting has been already done. And if you are not, be aware that you won't have to pay anything.
  • other remote ssh-accessible devices are the easiest from dinghy point of view, but you will be on your own to obtain the toolchain for your device architecture and operating system. If your device is a Raspberry Pi running raspbian, we can help. :)

Advanced topics and features

  • Some projects need resources files for running their tests or benches. Dinghy tries its best to make it work in as many project/target configurations as possible but some projects need a bit of help.
  • In some bigger projects, you may need to filter your project's members depending on the platform you want to test.
  • Passing environment variables to your executable may sometimes be useful.
  • Dinghy offers an overlay system to "add" stuff to your toolchain sysroot. This allows you to add "stuff" to your build dependencies, like static libraries or headers without altering the sysroot toolchain.
  • The dinghy-build crate offers some build.rs features that are useful in the context of cross-compilation.

License

Licensed under either of

Contribution

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].