Git Product home page Git Product logo

netsblox-vm's Introduction

codecov

NetsBlox is a browser-based visual programming environment (based on Snap!) that extends the typical block-based programming features with internet and distributed computing tools such as RPCs (remote procedure calls) that access network resources (e.g., databases or web APIs), and message passing between projects over the internet.

netsblox-vm is a native Rust implementation of the NetsBlox code execution engine and runtime. This makes it possible to execute NetsBlox program code at blistering speeds on any device targeted by the Rust compiler. But more importantly, netsblox-vm has several extension APIs which make it possible to extend its features with new hardware peripheral access capabilities (e.g., controlling sensors and actuators through GPIO), all with safe, native Rust.

Features

netsblox-vm contains the following feature flags.

name default description
std on Enables the std crate dependency and access to the default StdSystem implementation of System
cli on Enables the std feature flag and additionally gives access to the cli submodule, which gives API access to the standard CLI (needed for syscall extensions) rather than having to write a CLI from scratch
serde on Enables serialization of some types
native-tls on Enables the native-tls feature for TLS-capable dependencies (only used if std is also enabled)
native-tls-vendored off Enables the native-tls-vendored feature for TLS-capable dependencies (only used if std is also enabled)
rustls-tls-native-roots off Enables the rustls-tls-native-roots feature for TLS-capable dependencies (only used if std is also enabled)
rustls-tls-webpki-roots off Enables the rustls-tls-webpki-roots feature for TLS-capable dependencies (only used if std is also enabled)

Note that if std is enabled, one of the TLS feature flags must also be enabled in order to connect to the NetsBlox server with StdSystem. The native-tls feature is enabled by default to support this on common desktop and server environments; however you may need to disable default features and explicitly opt into a different TLS option for other targets (e.g., Android or iOS).

no-std

netsblox-vm supports building in no-std environments by disabling the default std feature flag. However, the alloc crate is still required in this case.

[dependencies]
netsblox_vm = { version = "...", default-features = false }

Note that this precludes access to StdSystem, meaning a new implementation of System would be required for your target platform.

CLI Installation

This crate includes a binary called nb which serves as a shallow wrapper for the cli API with a default suite of syscall extensions. Note: if you need to create your own syscall extensions, you must do so in a separate binary using this crate as a dependency.

cargo install netsblox-vm

netsblox-vm's People

Contributors

dragazo avatar gsteinltu 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.