Add compile options: '--features oniguruma' #13#14
Merged
greymd merged 12 commits intoJul 1, 2020
Conversation
Owner
|
!? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
--features onigurumaで oniguruma を有効にしてビルドできるように変更--features onigurumaを追加内容
impure::onigとpure::onigモジュールを追加impure::onigかpure::onigに隠蔽されたonigの機能を呼び出します補足
以下はビルド時の出力です。
⟩ cargo build Compiling proc-macro2 v1.0.18 Compiling memchr v2.3.3 Compiling unicode-xid v0.2.1 Compiling syn v1.0.33 Compiling serde_derive v1.0.114 Compiling libc v0.2.71 Compiling lazy_static v1.4.0 Compiling regex-syntax v0.6.18 Compiling serde v1.0.114 Compiling log v0.4.8 Compiling quick-error v1.2.3 Compiling cfg-if v0.1.10 Compiling strsim v0.9.3 Compiling termcolor v1.1.0 Compiling thread_local v1.0.1 Compiling humantime v1.3.0 Compiling quote v1.0.7 Compiling aho-corasick v0.7.13 Compiling atty v0.2.14 Compiling regex v1.3.9 Compiling env_logger v0.7.1 Compiling docopt v1.1.0 Compiling teip v1.2.0 (/home/vagrant/src/github.com/jiro4989/teip) Finished dev [unoptimized + debuginfo] target(s) in 36.98s ⟩ cargo build --features oniguruma Compiling cc v1.0.55 Compiling version_check v0.9.2 Compiling glob v0.3.0 Compiling bitflags v1.2.1 Compiling unicode-width v0.1.7 Compiling strsim v0.8.0 Compiling vec_map v0.8.2 Compiling ansi_term v0.11.0 Compiling bindgen v0.53.3 Compiling shlex v0.1.1 Compiling lazycell v1.2.1 Compiling rustc-hash v1.1.0 Compiling peeking_take_while v0.1.2 Compiling pkg-config v0.3.17 Compiling libloading v0.5.2 Compiling nom v5.1.2 Compiling clang-sys v0.29.3 Compiling textwrap v0.11.0 Compiling which v3.1.1 Compiling clap v2.33.1 Compiling cexpr v0.4.0 Compiling onig_sys v69.5.0 Compiling onig v6.0.0 Compiling teip v1.2.0 (/home/vagrant/src/github.com/jiro4989/teip) Finished dev [unoptimized + debuginfo] target(s) in 36.64s--features onigurumaを有効にしたほうだけonigをコンパイルしています。以下はコマンドの実行結果です。
⟩ cargo build Finished dev [unoptimized + debuginfo] target(s) in 0.15s ⟩ echo '寿司' | ./target/debug/teip -oGg '寿' teip: This build is not enabled 'oniguruma'⟩ cargo build --features oniguruma Finished dev [unoptimized + debuginfo] target(s) in 0.06s ⟩ echo '寿司' | ./target/debug/teip -oGg '寿' [寿]司