Skip to content

The meanscout api in rust for maybe better safety and speed. An actual executable is also kinda nice.

License

Notifications You must be signed in to change notification settings

4198-Programmers/meanscout-api

Repository files navigation

Meanscout Api (RUST EDITION)

An attempt at making the meanscout api in rust for maybe better safety. Can't be too easy to make.
(and honestly I trust this version a lot more)

This network API backend is made for the companion webapp we forked from Aidan Linerud of FRC Team 2471, Meanscout. The exact version of Meanscout we use is under the main branch located here. The API is made to intake and process the data coming from Meanscout. It will then put it into the file data.csv.

How to use

In the future I plan on putting it on crates.io so you can just run cargo install meanscout or something along those lines

Running

You can just use it by running cargo run --release in the directory the project is located

Building as a standalone executable

To build it from source you first need to have rust installed, and use the command cargo build --release while in the project directory
When it is done building, the binary will be located in /target/release/ as the executable meanapi

How to set configurations

All of the configuration that you should need is located in Config.toml.

IP Address and Ports

To change the ip or ports to run on just change the variable in Config.toml as shown

ip_address = [0,0,0,0] # Each digit is each octet in the ip address
port = 8000

Passwords

Changing the passwords requires changing the password variable in settings.toml. You add or remove strings to the list to add or remove possible passwords.

passwords = ["ChangeMe!", "AnotherPassword!"]

Logging

The current logging system is set of macros that are called when something happens. This writes whether it was successful, or if something wrong happened into the file logs/meanscout.log, or a different location configured in Config.toml.

Contributing

If you would like to contribute to the project you can do any of the following.

  • Make a fork and commit and merge your changes
  • Add anything like bugs or things you'd like added to the issues page

Credits

Special thanks to Joseph Melancon for kicking off our teams digital scouting efforts, advising us, and much more

About

The meanscout api in rust for maybe better safety and speed. An actual executable is also kinda nice.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages