I'm trying to upload .rs files to my posts but I get this message when using drag and drop:
Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif, heic, heif, webp).
I'm trying to upload .rs files to my posts but I get this message when using drag and drop:
Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif, heic, heif, webp).
Only images can be dragged and dropped into the forum, apparently. To embed rust code in posts, enter the line ```rust
, paste your code, and enter the line ```
. Like this:
```rust
fn main() {
println!("Hello world!");
}
```
That will look like this in the post:
fn main() {
println!("Hello world!");
}
I believe the @admins can add dot-rs files to the allowed list.
I suspect embedded in code tags (see above) or a link to a Git repository are a bit more user friendly.