Work in progress HTTP API for Pi-hole. The API reads FTL's shared memory so it can directly read the statistics FTL generates. This API is the replacement for most of FTL's socket/telnet API, as well as the PHP API of the pre-5.0 web interface.
rust-toolchain
. The version should be detected and
used automatically when you run a Rust command in the project directory,
such as cargo check
(this is a feature of rustup
)source ~/.cargo/env
build-essential
for Debian distros, gcc-c++
and make
for RHEL
distroslibsqlite3-dev
for Debian distros, sqlite-devel
for RHELdevelopment
branch for the latest changes.cargo check
. This will download the Rust nightly toolchain and project
dependencies, and it will check the program for errors. If everything was set
up correctly, the final output should look like this:
Finished dev [unoptimized + debuginfo] target(s) in 1m 11s
cargo test
. This will compile and run the tests. They should all pass
:wink:development
in your
fork to work in. When you're ready to make a pull request, base the PR against
development
.