mirror of https://github.com/Aloxaf/silicon
Use git version of font-kit
This commit is contained in:
parent
afc5f7dfe1
commit
40c46762e1
|
@ -406,7 +406,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
[[package]]
|
||||
name = "font-kit"
|
||||
version = "0.3.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
source = "git+https://github.com/pcwalton/font-kit#2fd68a8e932d43d498d58021d6fc78c0c0eef81f"
|
||||
dependencies = [
|
||||
"byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"core-foundation 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -1186,7 +1186,7 @@ dependencies = [
|
|||
"env_logger 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"euclid 0.19.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"font-kit 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"font-kit 0.3.1 (git+https://github.com/pcwalton/font-kit)",
|
||||
"image 0.21.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"imageproc 0.18.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -1488,7 +1488,7 @@ dependencies = [
|
|||
"checksum flate2 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)" = "550934ad4808d5d39365e5d61727309bf18b3b02c6c56b729cb92e7dd84bc3d8"
|
||||
"checksum float-ord 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7bad48618fdb549078c333a7a8528acb57af271d0433bdecd523eb620628364e"
|
||||
"checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3"
|
||||
"checksum font-kit 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "da53acd00b0af3dbb578bdfa92d0acee09c7e4e4f4dfb4b9cb7d7bc57f135270"
|
||||
"checksum font-kit 0.3.1 (git+https://github.com/pcwalton/font-kit)" = "<none>"
|
||||
"checksum foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
|
||||
"checksum foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
|
||||
"checksum freetype 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "11926b2b410b469d0e9399eca4cbbe237a9ef02176c485803b29216307e8e028"
|
||||
|
|
|
@ -31,5 +31,8 @@ version = "0.6.2"
|
|||
default-features = false
|
||||
features = [ "termcolor", "atty", "humantime" ]
|
||||
|
||||
[patch.crates-io]
|
||||
font-kit = { version = "0.3.1", git = "https://github.com/pcwalton/font-kit" }
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
Silicon is an alternative to [Carbon](https://github.com/dawnlabs/carbon) implemented in Rust.
|
||||
|
||||
It can render your source code into a beautiful image.
|
||||
|
||||
<img width="66%" src="http://storage.aloxaf.cn/silicon.png?">
|
||||
|
||||
## Why Silicon
|
||||
|
@ -30,6 +32,12 @@ It's not as beautiful as Carbon...
|
|||
cargo install silicon
|
||||
```
|
||||
|
||||
Or the git version (Currently only the git version can work well on Windows)
|
||||
|
||||
```
|
||||
cargo install --git https://github.com/Aloxaf/silicon --branch dev
|
||||
```
|
||||
|
||||
`xclip` is required on Linux for clipboard support.
|
||||
|
||||
## Basic Usage
|
||||
|
|
Loading…
Reference in New Issue