Skip to content

Commit

Permalink
Merge pull request #5 from frostu8/forbid-unsafe
Browse files Browse the repository at this point in the history
Forbid unsafe code
  • Loading branch information
frostu8 authored Dec 14, 2024
2 parents 8c091f1 + e6ba8c4 commit 03a19ea
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,14 @@ some of the most extreme browsing environments (most notably
[`lynx`](https://lynx.invisible-island.net/), because if the website can
support `lynx` cleanly it can support **anything**).

Check out a running instance at <https://inferno.frostu8.rs/>, but be gentle,
please. This *is* your mama's server.
Check out a running instance at <https://infernowiki.rs/>, but be gentle,
please.

## `#![forbid(unsafe_code)]`
Unsafe code is forbidden. Classically and interestingly, many of the big day-0
exploits happen because of simple oversights that would otherwise be
bounds-checked by the compiler or at runtime.

I expect `inferno` to grow along with the Rust ecosystem, which means I can
expect to be pulling crates to do jobs that might be done with `unsafe` code
that are battle-tested.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![forbid(unsafe_code)]

pub mod account;
pub mod app;
pub mod components;
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![forbid(unsafe_code)]

#[cfg(feature = "ssr")]
use anyhow::Error as AnyhowError;

Expand Down

0 comments on commit 03a19ea

Please sign in to comment.