~vpzom/hitide

c67ad438cf8f8cbaf2876a2b1a0f338016f4d4e2 — Colin Reeder 4 years ago 9d91862
proc_macro_hygiene is stable now
4 files changed, 6 insertions(+), 11 deletions(-)

M Cargo.lock
M Cargo.toml
M Dockerfile
M src/main.rs
M Cargo.lock => Cargo.lock +1 -1
@@ 232,7 232,7 @@ dependencies = [

[[package]]
name = "hitide"
version = "0.3.0"
version = "0.3.1-pre"
dependencies = [
 "ammonia",
 "chrono",

M Cargo.toml => Cargo.toml +1 -1
@@ 1,6 1,6 @@
[package]
name = "hitide"
version = "0.3.0"
version = "0.3.1-pre"
authors = ["Colin Reeder <colin@vpzom.click>"]
edition = "2018"
license = "AGPL-3.0-or-later"

M Dockerfile => Dockerfile +4 -8
@@ 1,16 1,12 @@
FROM rustlang/rust:nightly-buster-slim AS builder
RUN apt-get update \
	&& apt-get install -y libssl-dev pkg-config \
	&& rm -rf /var/lib/apt/lists/*
FROM rust:1.45-alpine AS builder
RUN apk add --no-cache cargo openssl-dev
WORKDIR /usr/src/hitide
COPY Cargo.* ./
COPY src ./src
COPY res ./res
RUN cargo build --release

FROM debian:buster-slim
RUN apt-get update \
	&& apt-get install -y openssl \
	&& rm -rf /var/lib/apt/lists/*
FROM alpine:3.12
RUN apk add --no-cache libgcc openssl
COPY --from=builder /usr/src/hitide/target/release/hitide /usr/bin/
CMD ["hitide"]

M src/main.rs => src/main.rs +0 -1
@@ 1,4 1,3 @@
#![feature(proc_macro_hygiene)]
#![allow(unused_braces)]

use crate::resp_types::RespLoginInfo;