Compare commits
5 Commits
ac2a6444ef
...
be1c403112
Author | SHA1 | Date |
---|---|---|
Bauke | be1c403112 | |
Bauke | bcf55aea1e | |
Bauke | 0d1c401cd4 | |
Bauke | dbbeba59b7 | |
Bauke | c69bfe9f28 |
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,4 @@
|
|||
FROM rust:1.64 as builder
|
||||
FROM rust:1.70 as builder
|
||||
|
||||
# Create a new empty project.
|
||||
RUN USER=root cargo new --bin tildes-statistics
|
||||
|
@ -18,7 +18,7 @@ COPY node_modules/modern-normalize node_modules/modern-normalize
|
|||
RUN rm target/release/deps/tildes_statistics*
|
||||
|
||||
# Build the executable with actual source code.
|
||||
RUN cargo install --offline --path .
|
||||
RUN cargo install --locked --offline --path .
|
||||
|
||||
# Copy the executable to a smaller final image.
|
||||
FROM debian:bullseye-slim
|
||||
|
|
|
@ -60,7 +60,7 @@ impl UserCountChart {
|
|||
|
||||
let chart_root = chart_root
|
||||
.margin(20, 20, 20, 20)
|
||||
.titled("Tildes User Count", text_style(30))?;
|
||||
.titled("User Count", text_style(30))?;
|
||||
|
||||
chart_root.fill(&BACKGROUND_2)?;
|
||||
|
||||
|
|
|
@ -65,5 +65,5 @@ pub fn get_env_var(key: &str) -> Result<String> {
|
|||
|
||||
/// Create a [`NaiveDate`] for today.
|
||||
pub fn today() -> NaiveDate {
|
||||
Utc::now().date().naive_utc()
|
||||
Utc::now().date_naive()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue