Compare commits
15 Commits
3e61345805
...
c5ff939007
Author | SHA1 | Date |
---|---|---|
|
c5ff939007 | |
|
c55ef48ba3 | |
|
bdc85b1536 | |
|
b1264c8b69 | |
|
1d0066eeda | |
|
43a542e192 | |
|
7e92f3c7a9 | |
|
737b4700a0 | |
|
22ab51b29c | |
|
b312b9931d | |
|
e057c81325 | |
|
fd6d806365 | |
|
e351243126 | |
|
eee6502aa1 | |
|
c07ac3b6c0 |
|
@ -141,9 +141,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "axum"
|
name = "axum"
|
||||||
version = "0.5.4"
|
version = "0.5.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f4af7447fc1214c1f3a1ace861d0216a6c8bb13965b64bbad9650f375b67689a"
|
checksum = "00f1e8a972137fad81e2a1a60b86ff17ce0338f8017264e45a9723d0083c39a1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"axum-core",
|
"axum-core",
|
||||||
|
@ -172,9 +172,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "axum-core"
|
name = "axum-core"
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3bdc19781b16e32f8a7200368a336fa4509d4b72ef15dd4e41df5290855ee1e6"
|
checksum = "da31c0ed7b4690e2c78fe4b880d21cd7db04a346ebc658b4270251b695437f17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
@ -186,9 +186,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "axum-extra"
|
name = "axum-extra"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a00a7085c512df12d4e07a862b23a3b3bfe5326ecfc4185b49fb15c8850ba406"
|
checksum = "f77e63453d67cf14576bad0f395ad1541f0b92949a6a53b548f40b77158fc095"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
@ -203,9 +203,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "axum-macros"
|
name = "axum-macros"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "63bcb0d395bc5dd286e61aada9fc48201eb70e232f006f9d6c330c9db2f256f5"
|
checksum = "3dc20c9d065f7232b92740f99001addacef62697ed3a030369ef193140d7621c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"heck",
|
"heck",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
|
@ -2635,9 +2635,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tower-http"
|
name = "tower-http"
|
||||||
version = "0.3.2"
|
version = "0.3.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e980386f06883cf4d0578d6c9178c81f68b45d77d00f2c2c1bc034b3439c2c56"
|
checksum = "7d342c6d58709c0a6d48d48dabbb62d4ef955cf5f0f3bbfd845838e7ae88dbae"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-compression",
|
"async-compression",
|
||||||
"base64",
|
"base64",
|
||||||
|
@ -2660,6 +2660,7 @@ dependencies = [
|
||||||
"tower-layer",
|
"tower-layer",
|
||||||
"tower-service",
|
"tower-service",
|
||||||
"tracing",
|
"tracing",
|
||||||
|
"uuid 1.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2857,6 +2858,15 @@ dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "uuid"
|
||||||
|
version = "1.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "8cfcd319456c4d6ea10087ed423473267e1a071f3bc0aa89f80d60997843c6f0"
|
||||||
|
dependencies = [
|
||||||
|
"getrandom 0.2.5",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "valuable"
|
name = "valuable"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
@ -3137,7 +3147,7 @@ dependencies = [
|
||||||
"tracing-futures",
|
"tracing-futures",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
"url",
|
"url",
|
||||||
"uuid",
|
"uuid 0.8.2",
|
||||||
"xml-rs",
|
"xml-rs",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -207,12 +207,12 @@ Let's take a closer look at the higher level things in the flake:
|
||||||
your `flake.nix`. Ditto with "flake input" referring to the `inputs` attribute
|
your `flake.nix`. Ditto with "flake input" referring to the `inputs` attribute
|
||||||
of your `flake.nix`.](conversation://Cadey/enby)
|
of your `flake.nix`.](conversation://Cadey/enby)
|
||||||
|
|
||||||
When you ran `nix build` earlier, it defaulted to building the package in
|
When you ran `nix build` earlier, it defaulted to building the `default` entry
|
||||||
`defaultPackage`. You can also build the `go-hello` package by running this
|
in `packages`. You can also build the `default` package by running this
|
||||||
command:
|
command:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ nix build .#go-hello
|
$ nix build .#default
|
||||||
```
|
```
|
||||||
|
|
||||||
And if you want to build the copy I made for this post:
|
And if you want to build the copy I made for this post:
|
||||||
|
@ -234,11 +234,13 @@ simplify that above `nix build` and `./result/bin/go-hello` cycle into a single
|
||||||
`go-hello` to be the default app:
|
`go-hello` to be the default app:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
# below defaultPackage
|
# below packages
|
||||||
|
|
||||||
defaultApp = forAllSystems (system: {
|
apps = forAllSystems (system: {
|
||||||
|
default = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = "${self.packages.${system}.go-hello}/bin/go-hello";
|
program = "${self.packages.${system}.default}/bin/go-hello";
|
||||||
|
};
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -281,8 +283,10 @@ can add it to your `flake.nix` using this:
|
||||||
|
|
||||||
devShell = forAllSystems (system:
|
devShell = forAllSystems (system:
|
||||||
let pkgs = nixpkgsFor.${system};
|
let pkgs = nixpkgsFor.${system};
|
||||||
in pkgs.mkShell {
|
in {
|
||||||
buildInputs = with pkgs; [ go gopls goimports go-tools ];
|
default = pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [ go gopls gotools go-tools ];
|
||||||
|
};
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -68,12 +68,16 @@
|
||||||
<div class="warning">
|
<div class="warning">
|
||||||
@:mara("hacker", "Mara", Html(format!(r#"Hey, this post is set to go live to the public on {}. Right now you are reading a pre-publication version of this post. Please do not share this on social media. This post will automatically go live for everyone on the intended publication date. If you want access to these posts, please join the <a href="https://patreon.com/cadey">Patreon</a>. It helps me afford the copyeditor that I contract for the technical content I write."#, post.detri())))
|
@:mara("hacker", "Mara", Html(format!(r#"Hey, this post is set to go live to the public on {}. Right now you are reading a pre-publication version of this post. Please do not share this on social media. This post will automatically go live for everyone on the intended publication date. If you want access to these posts, please join the <a href="https://patreon.com/cadey">Patreon</a>. It helps me afford the copyeditor that I contract for the technical content I write."#, post.detri())))
|
||||||
</div>
|
</div>
|
||||||
|
} else {
|
||||||
|
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
|
||||||
}
|
}
|
||||||
|
|
||||||
<small>A @post.read_time_estimate_minutes minute read.</small>
|
<small>A @post.read_time_estimate_minutes minute read.</small>
|
||||||
|
|
||||||
@body
|
@body
|
||||||
|
|
||||||
|
<div class="adaptive" data-ea-publisher="christinewebsite" data-ea-type="image" data-ea-style="stickybox"></div>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
@if post.front_matter.vod.is_some() {
|
@if post.front_matter.vod.is_some() {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
@use super::{header_html, footer_html};
|
@use super::{header_html, footer_html, mara};
|
||||||
@use crate::post::Post;
|
@use crate::post::Post;
|
||||||
|
@use chrono::prelude::*;
|
||||||
|
|
||||||
@(post: Post, body: impl ToHtml)
|
@(post: Post, body: impl ToHtml)
|
||||||
|
|
||||||
|
@ -47,10 +48,20 @@
|
||||||
@}
|
@}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@if Utc::today().num_days_from_ce() < post.date.num_days_from_ce() {
|
||||||
|
<div class="warning">
|
||||||
|
@:mara("hacker", "Mara", Html(format!(r#"Hey, this post is set to go live to the public on {}. Right now you are reading a pre-publication version of this post. Please do not share this on social media. This post will automatically go live for everyone on the intended publication date. If you want access to these posts, please join the <a href="https://patreon.com/cadey">Patreon</a>. It helps me afford the copyeditor that I contract for the technical content I write."#, post.detri())))
|
||||||
|
</div>
|
||||||
|
} else {
|
||||||
|
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
|
||||||
|
}
|
||||||
|
|
||||||
@body
|
@body
|
||||||
|
|
||||||
<a href="@post.front_matter.slides_link.as_ref().unwrap()">Link to the slides</a>
|
<a href="@post.front_matter.slides_link.as_ref().unwrap()">Link to the slides</a>
|
||||||
|
|
||||||
|
<div data-ea-publisher="christinewebsite" data-ea-type="text"></div>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<!-- The button that should be clicked. -->
|
<!-- The button that should be clicked. -->
|
||||||
|
|
Loading…
Reference in New Issue