https://github.com/zweifisch/ob-rust
org-babel functions for rust evaluation
https://github.com/zweifisch/ob-rust
Last synced: over 1 year ago
JSON representation
org-babel functions for rust evaluation
- Host: GitHub
- URL: https://github.com/zweifisch/ob-rust
- Owner: zweifisch
- Created: 2015-05-29T09:59:45.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-12T12:23:31.000Z (about 11 years ago)
- Last Synced: 2025-01-27T22:55:17.781Z (over 1 year ago)
- Language: Emacs Lisp
- Size: 121 KB
- Stars: 11
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* ob-rust
org-babel functions for rust evaluation
no session support
** examples
: #+BEGIN_SRC rust
: for count in 0..3 {
: println!("{}. Hello World!", count);
: }
: #+END_SRC
:
: #+RESULTS:
: : 0. Hello World!
: : 1. Hello World!
: : 2. Hello World!
the last expression will be printed automatically
: #+BEGIN_SRC rust
: let double = |num| { num + num };
:
: double(17)
: #+END_SRC
:
: #+RESULTS:
: : 34