fleabitdev / glsp

The GameLisp scripting language
https://gamelisp.rs/
Apache License 2.0
394 stars 13 forks source link

Unable to install glsp locally #13

Closed CaspianA1 closed 4 years ago

CaspianA1 commented 4 years ago

I'll admit that I'm not too familiar with rust - and I have tried these two ways to install glsp:

fleabitdev commented 4 years ago

glsp is a library, rather than an executable program.

Rust programs almost always use the Cargo package manager, and with Cargo there's no need to explicitly install libraries like glsp. You simply list them in your Cargo.toml file, and they're automatically downloaded and compiled when you compile your Rust program. The Cargo Book has the details.

This means that your second option (cargo build with glsp = "0.1.0") should have worked. What problems are you encountering?

CaspianA1 commented 4 years ago

By the way I figured it out now - I had to setup a standard cargo project, and additionally I had to add this to the first line of my main.rs file: 'extern crate glsp;'. I'm not sure why this solved it, but I'm thinking that knowing this might be helpful for anyone struggling with this.