-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add direnv support, update license to 2024
- Loading branch information
Showing
50 changed files
with
102 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then | ||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8=" | ||
fi | ||
|
||
# make .direnv if it doesn't exist | ||
mkdir -p "$(direnv_layout_dir)" | ||
|
||
watch_file shell.nix | ||
watch_file flake.nix # as outputs can change at anytime | ||
watch_file flake.lock | ||
|
||
# we need to watch the rust-toolchain.toml file so if any edits occur, | ||
# then direnv can react to it and change the environment. | ||
watch_file rust-toolchain.toml | ||
|
||
# try to use flakes, if it fails use normal nix (ie. shell.nix) | ||
use flake || use nix | ||
eval "$shellHook" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -28,7 +28,7 @@ path = "src/bin/main.rs" | |
|
||
[dependencies] | ||
async-trait = "0.1.73" | ||
aws-sdk-s3 = "0.28.0" # must be pinned to what `remi-s3` supports | ||
aws-sdk-s3 = "0.28.0" # must be pinned to what `remi-s3` supports | ||
axum = { version = "0.6.20", features = ["headers", "macros", "multipart"] } | ||
bytes = "1.5.0" | ||
chrono = { version = "0.4.31", features = ["serde"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,7 +186,7 @@ | |
same "printed page" as the copyright notice for easier | ||
identification within third-party archives. | ||
|
||
Copyright 2021-2023 Noel Towa <[email protected]> | ||
Copyright 2021-2024 Noel Towa <[email protected]> | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
// Copyright 2021-2023 Noel Towa <[email protected]> | ||
// Copyright 2021-2024 Noel Towa <[email protected]> | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -13,6 +13,6 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM rust:1.73-alpine3.18 AS build | ||
FROM rust:1.75-alpine3.19 AS build | ||
|
||
FROM alpine:3.18 | ||
FROM alpine:3.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -13,6 +13,6 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM rust:1.73-slim-bullseye AS build | ||
FROM rust:1.75-slim-bullseye AS build | ||
|
||
FROM debian:bullseye-slim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -14,14 +14,14 @@ | |
# limitations under the License. | ||
|
||
[toolchain] | ||
channel = "stable" | ||
channel = "1.75" | ||
profile = "minimal" | ||
targets = [ | ||
"aarch64-unknown-linux-gnu", | ||
"x86_64-apple-darwin", | ||
"x86_64-unknown-linux-gnu", | ||
"x86_64-unknown-linux-musl", | ||
"x86_64-pc-windows-msvc" | ||
"x86_64-pc-windows-msvc", | ||
] | ||
components = [ | ||
"rustc", | ||
|
@@ -30,5 +30,5 @@ components = [ | |
"rust-src", | ||
"rust-std", | ||
"clippy", | ||
"rustfmt" | ||
"rustfmt", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
# Copyright 2021-2023 Noel Towa <[email protected]> | ||
# Copyright 2021-2024 Noel Towa <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
// Copyright 2021-2023 Noel Towa <[email protected]> | ||
// Copyright 2021-2024 Noel Towa <[email protected]> | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
// Copyright 2021-2023 Noel Towa <[email protected]> | ||
// Copyright 2021-2024 Noel Towa <[email protected]> | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
// Copyright 2021-2023 Noel Towa <[email protected]> | ||
// Copyright 2021-2024 Noel Towa <[email protected]> | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
// Copyright 2021-2023 Noel Towa <[email protected]> | ||
// Copyright 2021-2024 Noel Towa <[email protected]> | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
// Copyright 2021-2023 Noel Towa <[email protected]> | ||
// Copyright 2021-2024 Noel Towa <[email protected]> | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// π»ββοΈπ ume: Easy, self-hostable, and flexible image host made in Rust | ||
// Copyright 2021-2023 Noel Towa <[email protected]> | ||
// Copyright 2021-2024 Noel Towa <[email protected]> | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
|
Oops, something went wrong.