File tree Expand file tree Collapse file tree 10 files changed +72
-60
lines changed
input_text/default_input_text Expand file tree Collapse file tree 10 files changed +72
-60
lines changed Original file line number Diff line number Diff line change 1
1
[workspace ]
2
+ resolver = " 2"
2
3
members = [
3
4
" sudachi" ,
4
5
" sudachi-cli" ,
5
6
" sudachi-fuzz" ,
6
7
" plugin/input_text/*" ,
7
8
" plugin/oov/*" ,
8
9
" plugin/path_rewrite/*" ,
9
- " python"
10
+ " python" ,
10
11
]
12
+ default-members = [" sudachi" , " sudachi-cli" ]
11
13
12
- default-members = [
13
- " sudachi" ,
14
- " sudachi-cli"
15
- ]
16
-
17
- resolver = " 2"
14
+ [workspace .package ]
15
+ version = " 0.6.9-a1"
16
+ authors = [" Works Applications <sudachi@worksap.co.jp>" ]
17
+ edition = " 2021"
18
+ rust-version = " 1.74.1"
19
+ description = " Rust version of Sudachi, the Japanese Morphological Analyzer"
20
+ readme = " README.md"
21
+ homepage = " https://github.com/WorksApplications/sudachi.rs"
22
+ repository = " https://github.com/WorksApplications/sudachi.rs"
23
+ license = " Apache-2.0"
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " default_input_text"
3
- version = " 0.6.9-a1"
4
- authors = [" Works Applications <sudachi@worksap.co.jp>" ]
5
- edition = " 2018"
6
- license = " Apache-2.0"
3
+ version.workspace = true
4
+ authors.workspace = true
5
+ edition.workspace = true
6
+ rust-version.workspace = true
7
+ license.workspace = true
7
8
8
9
[lib ]
9
10
crate-type = [" cdylib" ]
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " simple_oov"
3
- version = " 0.6.9-a1"
4
- authors = [" Works Applications <sudachi@worksap.co.jp>" ]
5
- edition = " 2018"
6
- license = " Apache-2.0"
3
+ version.workspace = true
4
+ authors.workspace = true
5
+ edition.workspace = true
6
+ rust-version.workspace = true
7
+ license.workspace = true
7
8
8
9
[lib ]
9
10
crate-type = [" cdylib" ]
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " join_katakana_oov"
3
- version = " 0.6.9-a1"
4
- authors = [" Works Applications <sudachi@worksap.co.jp>" ]
5
- edition = " 2018"
6
- license = " Apache-2.0"
3
+ version.workspace = true
4
+ authors.workspace = true
5
+ edition.workspace = true
6
+ rust-version.workspace = true
7
+ license.workspace = true
7
8
8
9
[lib ]
9
10
crate-type = [" cdylib" ]
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " join_numeric"
3
- version = " 0.6.9-a1"
4
- authors = [" Works Applications <sudachi@worksap.co.jp>" ]
5
- edition = " 2018"
6
- license = " Apache-2.0"
3
+ version.workspace = true
4
+ authors.workspace = true
5
+ edition.workspace = true
6
+ rust-version.workspace = true
7
+ license.workspace = true
7
8
8
9
[lib ]
9
10
crate-type = [" cdylib" ]
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " sudachipy"
3
- version = " 0.6.9-a1"
4
- edition = " 2018"
3
+ version.workspace = true
4
+ authors.workspace = true
5
+ edition.workspace = true
6
+ rust-version.workspace = true
5
7
description = " Python bindings of sudachi.rs, the Japanese Morphological Analyzer"
6
- homepage = " https://github.com/WorksApplications/sudachi.rs "
7
- repository = " https://github.com/WorksApplications/sudachi.rs "
8
- license = " Apache-2.0 "
9
-
8
+ readme = " README.md "
9
+ homepage.workspace = true
10
+ repository.workspace = true
11
+ license.workspace = true
10
12
11
13
[lib ]
12
14
name = " sudachipy"
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " sudachi-cli"
3
- version = " 0.6.9-a1"
4
- authors = [" Works Applications <sudachi@worksap.co.jp>" ]
5
- edition = " 2018"
6
- description = " Rust version of Sudachi, the Japanese Morphological Analyzer"
7
- readme = " ../README.md"
8
- homepage = " https://github.com/WorksApplications/sudachi.rs"
9
- repository = " https://github.com/WorksApplications/sudachi.rs"
10
- license = " Apache-2.0"
3
+ version.workspace = true
4
+ authors.workspace = true
5
+ edition.workspace = true
6
+ rust-version.workspace = true
7
+ description.workspace = true
8
+ readme.workspace = true
9
+ homepage.workspace = true
10
+ repository.workspace = true
11
+ license.workspace = true
11
12
12
13
[dependencies ]
13
14
sudachi = { path = " ../sudachi" }
@@ -22,4 +23,4 @@ path = "src/main.rs"
22
23
23
24
[features ]
24
25
# Compile dictionary into executable (specifying dictionary becomes optional)
25
- bake_dictionary = []
26
+ bake_dictionary = []
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " sudachi-fuzz"
3
3
version = " 0.0.1"
4
- authors = [" Works Applications <sudachi@worksap.co.jp>" ]
5
- edition = " 2021"
6
- description = " Rust version of Sudachi, the Japanese Morphological Analyzer"
4
+ authors.workspace = true
5
+ edition.workspace = true
6
+ rust-version.workspace = true
7
+ description.workspace = true
8
+ license.workspace = true
7
9
8
10
[dependencies ]
9
11
sudachi = { path = " ../sudachi" }
10
12
criterion = " 0.5"
11
13
arbitrary = " 1"
12
14
13
15
[target .'cfg(unix)' .dependencies ]
14
- honggfuzz = " 0.5"
16
+ honggfuzz = " 0.5"
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " sudachi"
3
- version = " 0.6.9-a1"
4
- authors = [" Works Applications <sudachi@worksap.co.jp>" ]
5
- edition = " 2018"
6
- description = " Rust version of Sudachi, the Japanese Morphological Analyzer"
7
- readme = " README.md"
8
- homepage = " https://github.com/WorksApplications/sudachi.rs"
9
- repository = " https://github.com/WorksApplications/sudachi.rs"
10
- license = " Apache-2.0"
3
+ version.workspace = true
4
+ authors.workspace = true
5
+ edition.workspace = true
6
+ rust-version.workspace = true
7
+ description.workspace = true
8
+ readme.workspace = true
9
+ homepage.workspace = true
10
+ repository.workspace = true
11
+ license.workspace = true
11
12
12
13
[dependencies ] # this should be sorted
13
14
aho-corasick = " 1" # MIT/Apache 2.0
@@ -38,4 +39,4 @@ join_numeric = { path = "../plugin/path_rewrite/join_numeric" }
38
39
join_katakana_oov = { path = " ../plugin/path_rewrite/join_katakana_oov" }
39
40
40
41
[lib ]
41
- crate-type = [" rlib" ]
42
+ crate-type = [" rlib" ]
Original file line number Diff line number Diff line change 2
2
3
3
set -eu
4
4
5
- if [ $# -lt 2 ] && [ " $1 " != " show" ] ; then
5
+ if [ $# -lt 1 ] || ( [ $# -lt 2 ] && [ " $1 " != " show" ] ) ; then
6
6
echo " Provide 2 arguments [from] and [to] to update version, or 'show' to print current one."
7
7
exit 1
8
8
fi
9
9
10
- VERSION_CRR=$( cat ./sudachi/ Cargo.toml | grep -m1 " version \?=" | sed -r ' s/^.*"(.*)".*$/\1/' )
10
+ VERSION_CRR=$( cat ./Cargo.toml | grep -m1 " version \?=" | sed -r ' s/^.*"(.*)".*$/\1/' )
11
11
12
12
if [ $1 = " show" ] ; then
13
13
echo ${VERSION_CRR}
25
25
# update
26
26
echo " Update version from ${VERSION_FROM} to ${VERSION_TO} "
27
27
28
- CARGO_FILES=" $( find . -name Cargo.toml) "
29
-
30
- for FILE in $CARGO_FILES ; do
31
- echo $FILE
32
- # replace the first occurrence of `^version = "<version>"$`
33
- sed -i -r " 1,/^version = / s/^version = \" ${VERSION_FROM} \" $/version = \" ${VERSION_TO} \" /" $FILE
34
- done
28
+ WORKSPACE_CARGO_FILE=" ./Cargo.toml"
29
+ echo $WORKSPACE_CARGO_FILE
30
+ sed -i -r " 1,/^version = / s/^version = \" ${VERSION_FROM} \" $/version = \" ${VERSION_TO} \" /" $WORKSPACE_CARGO_FILE
35
31
36
32
PY_SETUP_FILE=" ./python/setup.py"
37
33
echo $PY_SETUP_FILE
You can’t perform that action at this time.
0 commit comments