profile
viewpoint
Arco Hsieh Arcovv Taiwan https://arcovv.github.io Rust | Swift | Haskell. Senior iOS Developer. Learning backend and linux now.

Arcovv/TextKit-Tutorial 3

A tutorial about how to build a reader App with TextKit.

Arcovv/ParallaxEffect 2

"iOS 实现在 UITableView 顶部加入视差图片的效果" in Swift

Arcovv/Articles---Challenge 1

It's Swift! Using WKWebView to load HTML String from local file.

Arcovv/Notes 1

Weakly Notes

Arcovv/Attributed 0

µframework for Attributed strings.

Arcovv/CalendarUtility 0

A Foundation.Calendar tool for you to build custom calendar internal date logic.

Arcovv/ChsLLVMDocs 0

It is a set of LLVM documents which are translated into Chinese.

Arcovv/CleanArchitectureRxSwift 0

Example of Clean Architecture of iOS app using RxSwift

Arcovv/Device 0

Light weight tool for detecting the current device and screen size written in swift.

startedJakeWharton/gitout

started time in 15 hours

startedogham/exa

started time in 3 days

startedaristocratos/bashtop

started time in 5 days

startedhecrj/iced

started time in 5 days

startedLemmyNet/lemmy

started time in 5 days

startedPlume-org/Plume

started time in 5 days

startedhediet/vscode-drawio

started time in 5 days

startedstarship/starship

started time in 5 days

startedBurntSushi/xsv

started time in 5 days

startedTheAlgorithms/Rust

started time in 5 days

startedstjepang/smol

started time in 5 days

startedgithub/semantic

started time in 5 days

startedcjbassi/ytop

started time in 6 days

startedfdehau/tui-rs

started time in 9 days

startedamethyst/amethyst

started time in 12 days

startedadwhit/diesel-derive-enum

started time in 13 days

startedjakob/Postico

started time in 13 days

startedPeternator7/strum

started time in 13 days

startedrust-analyzer/rust-analyzer

started time in 13 days

startedhyperium/tonic

started time in 13 days

startednushell/nushell

started time in 13 days

startedKokaKiwi/rust-hex

started time in 17 days

startedKeats/rust-bcrypt

started time in 17 days

issue openedbcmyers/argonautica

Fail to build in docker

Hello, I try to build my library in docker.

Here is my Dockerfile:

FROM rust:1.43 as builder
COPY . .
RUN cargo build --release

FROM rust:1.43-slim-stretch
WORKDIR /api-server
COPY --from=builder /target/release/server .
EXPOSE 8000

ENTRYPOINT ["/api-server/server"]

My cargo.toml:

[dependencies]
actix-web = "2.0.0"
argonautica = "0.2.0"
base64 = "0.12.0"
chrono = { version = "0.4.10", features = ["serde"] }
diesel_migrations = "1.4.0"
dotenv = "0.15.0"
env_logger = "0.7.0"
failure = "0.1.7"
futures = { version = "0.3" }
jsonwebtoken = "7.1.0"
log = "0.4"
passwords = "3.0.0"
regex = "1.3.7"
serde = { version = "1.0.104", features = ["derive"] }
sha3 = "0.8.2"
uuid = { version = "0.8.0", features = ["serde", "v4"] }

[dependencies.diesel]
version = "1.4.4"
default-features = false
features = ["chrono", "postgres", "r2d2", "uuidv07", "numeric", "32-column-tables"]

And the build error:

error: failed to run custom build command for `argonautica v0.2.0`

Caused by:
  process didn't exit successfully: `/target/release/build/argonautica-472f53119b460845/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/tmp/argonautica.erY09NmtgreS" "-pthread" "-std=c89" "-o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/argon2.o" "-c" "phc-winner-argon2/src/argon2.c"
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/tmp/argonautica.erY09NmtgreS" "-pthread" "-std=c89" "-o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/core.o" "-c" "phc-winner-argon2/src/core.c"
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/tmp/argonautica.erY09NmtgreS" "-pthread" "-std=c89" "-o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/blake2/blake2b.o" "-c" "phc-winner-argon2/src/blake2/blake2b.c"
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/tmp/argonautica.erY09NmtgreS" "-pthread" "-std=c89" "-o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/encoding.o" "-c" "phc-winner-argon2/src/encoding.c"
exit code: 0
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/tmp/argonautica.erY09NmtgreS" "-pthread" "-std=c89" "-o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/thread.o" "-c" "phc-winner-argon2/src/thread.c"
exit code: 0
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/tmp/argonautica.erY09NmtgreS" "-pthread" "-std=c89" "-o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/ref.o" "-c" "phc-winner-argon2/src/ref.c"
exit code: 0
exit code: 0
exit code: 0
exit code: 0
AR_x86_64-unknown-linux-gnu = None
AR_x86_64_unknown_linux_gnu = None
HOST_AR = None
AR = None
running: "ar" "crs" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/libargon2.a" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/argon2.o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/core.o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/blake2/blake2b.o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/encoding.o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/thread.o" "/target/release/build/argonautica-9eb41ddcf0127b4d/out/phc-winner-argon2/src/ref.o"
exit code: 0
cargo:rustc-link-lib=static=argon2
cargo:rustc-link-search=native=/target/release/build/argonautica-9eb41ddcf0127b4d/out

--- stderr
thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any valid shared libraries matching: [\'libclang.so\', \'libclang-*.so\', \'libclang.so.*\'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.48.1/src/lib.rs:1652:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Thanks for your help!

created time in 18 days

startedpointfreeco/swift-composable-architecture

started time in 21 days

startedredox-os/redox

started time in 23 days

startedctjhoa/rust-learning

started time in 23 days

startedlk-geimfari/awesomo

started time in 23 days

PR closed Ekhoo/Device

Fix warning in Xcode 10

Mark some open api as public to fix Xcode warning. Also set SWIFT_SWIFT3_OBJC_INFERENCE to Default.

+13 -13

0 comment

2 changed files

Arcovv

pr closed time in a month

startedbcmyers/argonautica

started time in a month

startedlettre/lettre

started time in a month

startedWillSquire/Graphy

started time in a month

startedrust-lang/rustlings

started time in a month

startedmonitoror/monitoror

started time in a month

startedsupercrabtree/k

started time in a month

startedtridactyl/tridactyl

started time in a month

startedactix/examples

started time in a month

startedCrunchyData/postgres-operator

started time in a month

startedrust-lang/futures-rs

started time in a month

startedprogramthink/books

started time in a month

startedorhun/kmon

started time in a month

startedrakyll/hey

started time in a month

startedkubevious/kubevious

started time in a month

startedcoreos/kube-prometheus

started time in a month

startedmy-dlq/blog-example

started time in 2 months

startedkubernetes/dashboard

started time in 2 months

startedlensapp/lens

started time in 2 months

startedkubernetes/kubernetes

started time in 2 months

issue commentArcovv/TextKit-Tutorial

为何每次获取到的 textLayout.numberOfGlyphs 都是固定数值

glyphs 是字形的意思,當 textStorage 把 textLayout 加進來的時候,就已經知道這個 storage 有多少 glyphs 了,fullContent() 返回的是 String。在一半情況下字元數量應該和自省數量相等。

Meonardo

comment created time in 2 months

startedzxyle/publish-gae-action

started time in 2 months

startedGoogleCloudPlatform/github-actions

started time in 2 months

startednewbee-ltd/newbee-mall

started time in 2 months

startedcli/cli

started time in 2 months

startedguumaster/hostctl

started time in 2 months

startedimsnif/bandwhich

started time in 2 months

startedzer0yu/CyberSecurityRSS

started time in 2 months

startedtauri-apps/tauri

started time in 2 months

startedtensor-programming/rust_actix_live_stream

started time in 2 months

startedmehcode/actix-diesel

started time in 2 months

startednemesiscodex/actix-blog-app

started time in 2 months

startedzhengjim/Chinese-Security-RSS

started time in 2 months

startedquasarframework/quasar

started time in 2 months

startedKeats/tera

started time in 2 months

starteddjc/askama

started time in 2 months

startedphoenixframework/phoenix_live_view

started time in 2 months

startedsunng87/handlebars-rust

started time in 2 months

startedaheart/hearth

started time in 2 months

startedphoenix2082/rustdays

started time in 2 months

startedhowtocards/backend

started time in 2 months

startedoronsh/raftor

started time in 2 months

startedkarthickai/actix_login

started time in 2 months

startedgengteng/admino

started time in 2 months

startedclifinger/canduma

started time in 2 months

startedrust-cli/confy

started time in 2 months

startedparitytech/substrate

started time in 2 months

startedKaiserY/trpl-zh-cn

started time in 2 months

startedKaiserY/rust-book-chinese

started time in 2 months

startedhail2u/html-best-practices

started time in 2 months

startedDSpeckhals/bible.rs

started time in 2 months

startedcrates-io/prodash

started time in 2 months

startedlabuladong/fucking-algorithm

started time in 2 months

startedlankydan/rust-web-with-rocket

started time in 2 months

startedPrivateRookie/actix-todo

started time in 2 months

startedrust-unofficial/patterns

started time in 2 months

startedfafhrd91/actix-web-postmortem

started time in 2 months

startedkaj/warp-diesel-ructe-sample

started time in 2 months

startedakubera/bigdecimal-rs

started time in 3 months

startedthma/LtuPatternFactory

started time in 3 months

startedkowainik/summoner

started time in 3 months

startedservicemesher/istio-handbook

started time in 3 months

starteddwmkerr/hacker-laws

started time in 3 months

startedHeholord/FalconStats

started time in 3 months

startedfairingrey/actix-realworld-example-app

started time in 3 months

startedsaschagrunert/webapp.rs

started time in 3 months

startedwebp-sh/webp_server_rs

started time in 3 months

starteddiesel-rs/diesel

started time in 3 months

startedTechEmpower/FrameworkBenchmarks

started time in 3 months

startedactix/examples

started time in 3 months

startednemesiscodex/actix-todo

started time in 3 months

more