Skip to content

Commit a0d4954

Browse files
committed
Add template files for regex helpers
Signed-off-by: 35V LG84 <[email protected]>
1 parent 29f58c2 commit a0d4954

File tree

5 files changed

+160
-0
lines changed

5 files changed

+160
-0
lines changed

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tackler-rs/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,10 @@ path = "src/lib.rs"
3434
[dependencies]
3535
indoc.workspace = true
3636
log = { workspace = true }
37+
regex = { workspace = true }
38+
serde = { workspace = true, features = [ "std", "derive"] }
3739
walkdir = "2.5.0"
3840

41+
[dev-dependencies]
42+
serde_json = { workspace = true }
43+

tackler-rs/src/regex.rs

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* This file is licensed under either of
3+
* - Apache License, Version 2.0
4+
* OR
5+
* - MIT license
6+
* at your option.
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 OR MIT
9+
*
10+
**************************************************************************
11+
*
12+
* Apache License header
13+
*
14+
* Copyright 2024 E257.FI
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
*
28+
***************************************************************************
29+
*
30+
* MIT License
31+
*
32+
* Copyright 2024 E257.FI
33+
*
34+
* Permission is hereby granted, free of charge, to any person obtaining
35+
* a copy of this software and associated documentation files (the “Software”),
36+
* to deal in the Software without restriction, including without limitation
37+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
38+
* and/or sell copies of the Software, and to permit persons to whom
39+
* the Software is furnished to do so, subject to the following conditions:
40+
*
41+
* The above copyright notice and this permission notice shall be included
42+
* in all copies or substantial portions of the Software.
43+
*
44+
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
45+
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
46+
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
47+
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
48+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
49+
* OR OTHER DEALINGS IN THE SOFTWARE.
50+
*/

tackler-rs/src/regex/serde.rs

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* This file is licensed under either of
3+
* - Apache License, Version 2.0
4+
* OR
5+
* - MIT license
6+
* at your option.
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 OR MIT
9+
*
10+
**************************************************************************
11+
*
12+
* Apache License header
13+
*
14+
* Copyright 2024 E257.FI
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
*
28+
***************************************************************************
29+
*
30+
* MIT License
31+
*
32+
* Copyright 2024 E257.FI
33+
*
34+
* Permission is hereby granted, free of charge, to any person obtaining
35+
* a copy of this software and associated documentation files (the “Software”),
36+
* to deal in the Software without restriction, including without limitation
37+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
38+
* and/or sell copies of the Software, and to permit persons to whom
39+
* the Software is furnished to do so, subject to the following conditions:
40+
*
41+
* The above copyright notice and this permission notice shall be included
42+
* in all copies or substantial portions of the Software.
43+
*
44+
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
45+
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
46+
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
47+
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
48+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
49+
* OR OTHER DEALINGS IN THE SOFTWARE.
50+
*/
51+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* This file is licensed under either of
3+
* - Apache License, Version 2.0
4+
* OR
5+
* - MIT license
6+
* at your option.
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 OR MIT
9+
*
10+
**************************************************************************
11+
*
12+
* Apache License header
13+
*
14+
* Copyright 2024 E257.FI
15+
*
16+
* Licensed under the Apache License, Version 2.0 (the "License");
17+
* you may not use this file except in compliance with the License.
18+
* You may obtain a copy of the License at
19+
*
20+
* http://www.apache.org/licenses/LICENSE-2.0
21+
*
22+
* Unless required by applicable law or agreed to in writing, software
23+
* distributed under the License is distributed on an "AS IS" BASIS,
24+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25+
* See the License for the specific language governing permissions and
26+
* limitations under the License.
27+
*
28+
***************************************************************************
29+
*
30+
* MIT License
31+
*
32+
* Copyright 2024 E257.FI
33+
*
34+
* Permission is hereby granted, free of charge, to any person obtaining
35+
* a copy of this software and associated documentation files (the “Software”),
36+
* to deal in the Software without restriction, including without limitation
37+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
38+
* and/or sell copies of the Software, and to permit persons to whom
39+
* the Software is furnished to do so, subject to the following conditions:
40+
*
41+
* The above copyright notice and this permission notice shall be included
42+
* in all copies or substantial portions of the Software.
43+
*
44+
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
45+
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
46+
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
47+
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
48+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
49+
* OR OTHER DEALINGS IN THE SOFTWARE.
50+
*/
51+

0 commit comments

Comments
 (0)