Prepare for publish on crates.io

This commit is contained in:
Garen Tyler 2020-12-10 22:05:01 -07:00
parent ad0e6843b7
commit 37695f8d63
4 changed files with 6 additions and 10 deletions

View File

@ -3,6 +3,9 @@ name = "pivot"
version = "0.1.0"
authors = ["Garen Tyler <garentyler@gmail.com>"]
edition = "2018"
description = "Pivot is a new programming language built with Rust by Garen Tyler. Pivot is currently in the alpha stage of development."
license = "MIT"
repository = "https://github.com/garentyler/pivot"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,9 +0,0 @@
fn main() {
println!("cargo:rerun-if-changed=test.js");
println!("cargo:rerun-if-changed=package.json");
println!("cargo:rerun-if-changed=package-lock.json");
std::process::Command::new("npm")
.arg("install")
.output()
.expect("could not install npm dependencies");
}

View File

@ -1,8 +1,9 @@
{
"name": "pivot",
"version": "1.0.0",
"version": "0.1.0",
"description": "Pivot is a new programming language built with Rust by Garen Tyler. Pivot is currently in the alpha stage of development.",
"main": "test.js",
"private": true,
"dependencies": {
"wasi": "0.0.6"
},

View File

@ -7,6 +7,7 @@ Pivot is a new programming language built with Rust by Garen Tyler. Pivot is cur
### Development
* Download the repo with `git clone https://github.com/garentyler/pivot`.
* Make sure you have [Rust](https://www.rust-lang.org/), [NodeJS](https://nodejs.org/en/), and [NPM](https://www.npmjs.com/) installed.
* Run `npm install` to install the JavaScript dependencies.
* Scripts:
* `npm run clean` to delete dependencies and output files.
* `npm run build` to build the project.