-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: squashed all history from rdfox-rs repo
- Loading branch information
Showing
36 changed files
with
1,800 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
max_line_length = 120 | ||
tab_width = 2 | ||
trim_trailing_whitespace = true | ||
ij_continuation_indent_size = 8 | ||
ij_formatter_off_tag = @formatter:off | ||
ij_formatter_on_tag = @formatter:on | ||
ij_formatter_tags_enabled = false | ||
ij_smart_tabs = false | ||
ij_visual_guides = none | ||
ij_wrap_on_typing = false | ||
|
||
[*.rs] | ||
indent_size = 4 | ||
max_line_length = 100 | ||
ij_continuation_indent_size = 4 | ||
ij_rust_align_multiline_chained_methods = false | ||
ij_rust_align_multiline_parameters = true | ||
ij_rust_align_multiline_parameters_in_calls = true | ||
ij_rust_align_ret_type = true | ||
ij_rust_align_type_params = false | ||
ij_rust_align_where_bounds = true | ||
ij_rust_align_where_clause = false | ||
ij_rust_allow_one_line_match = false | ||
ij_rust_block_comment_at_first_column = false | ||
ij_rust_indent_where_clause = true | ||
ij_rust_keep_blank_lines_in_code = 2 | ||
ij_rust_keep_blank_lines_in_declarations = 2 | ||
ij_rust_keep_indents_on_empty_lines = false | ||
ij_rust_keep_line_breaks = true | ||
ij_rust_line_comment_add_space = true | ||
ij_rust_line_comment_at_first_column = false | ||
ij_rust_min_number_of_blanks_between_items = 1 | ||
ij_rust_preserve_punctuation = false | ||
ij_rust_spaces_around_assoc_type_binding = false | ||
|
||
[.editorconfig] | ||
ij_editorconfig_align_group_field_declarations = false | ||
ij_editorconfig_space_after_colon = false | ||
ij_editorconfig_space_after_comma = true | ||
ij_editorconfig_space_before_colon = false | ||
ij_editorconfig_space_before_comma = false | ||
ij_editorconfig_spaces_around_assignment_operators = true | ||
|
||
[{*.har,*.json}] | ||
ij_json_keep_blank_lines_in_code = 0 | ||
ij_json_keep_indents_on_empty_lines = false | ||
ij_json_keep_line_breaks = true | ||
ij_json_space_after_colon = true | ||
ij_json_space_after_comma = true | ||
ij_json_space_before_colon = true | ||
ij_json_space_before_comma = false | ||
ij_json_spaces_within_braces = false | ||
ij_json_spaces_within_brackets = false | ||
ij_json_wrap_long_lines = false | ||
|
||
[{*.htm,*.html,*.sht,*.shtm,*.shtml}] | ||
indent_size = 4 | ||
ij_html_add_new_line_before_tags = body,div,p,form,h1,h2,h3 | ||
ij_html_align_attributes = true | ||
ij_html_align_text = false | ||
ij_html_attribute_wrap = normal | ||
ij_html_block_comment_at_first_column = true | ||
ij_html_do_not_align_children_of_min_lines = 0 | ||
ij_html_do_not_break_if_inline_tags = title,h1,h2,h3,h4,h5,h6,p | ||
ij_html_do_not_indent_children_of_tags = html,body,thead,tbody,tfoot | ||
ij_html_enforce_quotes = false | ||
ij_html_inline_tags = a,abbr,acronym,b,basefont,bdo,big,br,cite,cite,code,dfn,em,font,i,img,input,kbd,label,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var | ||
ij_html_keep_blank_lines = 2 | ||
ij_html_keep_indents_on_empty_lines = false | ||
ij_html_keep_line_breaks = true | ||
ij_html_keep_line_breaks_in_text = true | ||
ij_html_keep_whitespaces = false | ||
ij_html_keep_whitespaces_inside = span,pre,textarea | ||
ij_html_line_comment_at_first_column = true | ||
ij_html_new_line_after_last_attribute = never | ||
ij_html_new_line_before_first_attribute = never | ||
ij_html_quote_style = double | ||
ij_html_remove_new_line_before_tags = br | ||
ij_html_space_after_tag_name = false | ||
ij_html_space_around_equality_in_attribute = false | ||
ij_html_space_inside_empty_tag = false | ||
ij_html_text_wrap = normal | ||
|
||
[{*.toml,Cargo.lock,Gopkg.lock,Pipfile}] | ||
ij_toml_keep_indents_on_empty_lines = false | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[{Makefile, *.mk}] | ||
indent_size = 4 | ||
tab_width = 4 | ||
|
||
[*.sparql] | ||
indent_size = 4 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# See https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners | ||
# | ||
|
||
* [email protected] | ||
* [email protected] | ||
* [email protected] | ||
* [email protected] | ||
* [email protected] | ||
* [email protected] | ||
* [email protected] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
documentation: | ||
- '**/*.md' | ||
|
||
rdf: | ||
- '**/*.ttl' | ||
- '**/*.nt' | ||
|
||
sparql: | ||
- '**/*.sparql' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags: | ||
- '*' | ||
pull_request: | ||
|
||
env: | ||
RUSTUP_TOOLCHAIN: nightly | ||
CARGO_TERM_COLOR: always | ||
LLVM_VERSION: 14.0.0 | ||
|
||
jobs: | ||
build: | ||
name: build | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-12 | ||
- windows-2022 | ||
- ubuntu-latest | ||
include: | ||
- os: macos-12 | ||
target: x86_64-apple-darwin | ||
rustup_home: /Users/runner/.cargo | ||
- os: windows-2022 | ||
target: x86_64-pc-windows-msvc | ||
rustup_home: C:/Users/runneradmin/.cargo | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-musl | ||
rustup_home: /home/runner/.cargo | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
RUSTUP_HOME: ${{ matrix.rustup_home }} | ||
RUST_TARGET: ${{ matrix.target }} | ||
MAKE: ${{ matrix.make_bin }} | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
|
||
- name: Cache LLVM and Clang | ||
id: cache-llvm | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
C:/Program Files/LLVM | ||
./llvm | ||
key: llvm-15 | ||
|
||
- name: Install LLVM and Clang | ||
id: install-llvm | ||
uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: 15 | ||
cached: ${{ steps.cache-llvm.outputs.cache-hit }} | ||
|
||
- name: Windows - Prepare LLVM | ||
if: contains(matrix.os, 'windows') | ||
shell: bash | ||
env: | ||
LLVM_VERSION: ${{ steps.install-llvm.outputs.version }} | ||
run: | | ||
export LLVM_PATH="C:\Program Files\LLVM" | ||
echo LLVM_PATH="C:\Program Files\LLVM" >> $GITHUB_ENV | ||
echo "CPATH=$LLVM_PATH\lib\clang\$LLVM_VERSION\include\" >> $GITHUB_ENV | ||
echo "LD_LIBRARY_PATH=$LLVM_PATH/lib" >> $GITHUB_ENV | ||
echo "DYLD_LIBRARY_PATH=$LLVM_PATH/lib" >> $GITHUB_ENV | ||
echo "LDFLAGS=-L$LLVM_PATH\lib" >> $GITHUB_ENV | ||
echo "CPPFLAGS=-I$LLVM_PATH\include" >> $GITHUB_ENV | ||
echo "CC=$LLVM_PATH\bin\clang" >> $GITHUB_ENV | ||
echo "CXX=$LLVM_PATH\bin\clang++" >> $GITHUB_ENV | ||
"${LLVM_PATH}\bin\clang" -v | ||
echo "---" | ||
cat $GITHUB_ENV | ||
- name: MacOS - Prepare LLVM | ||
if: contains(matrix.os, 'macos') | ||
shell: bash | ||
env: | ||
LLVM_PATH: /Users/runner/work/rdfox-sys/rdfox-sys/llvm | ||
LLVM_VERSION: ${{ steps.install-llvm.outputs.version }} | ||
run: | | ||
set -x | ||
# export LLVM_PATH="$(brew --prefix llvm)" | ||
"$LLVM_PATH/bin/clang" -v | ||
echo "LLVM_VERSION=$LLVM_VERSION" >> $GITHUB_ENV | ||
echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV | ||
echo "CPATH=$LLVM_PATH/lib/clang/$LLVM_VERSION/include/" >> $GITHUB_ENV | ||
echo "LD_LIBRARY_PATH=$LLVM_PATH/lib" >> $GITHUB_ENV | ||
echo "DYLD_LIBRARY_PATH=$LLVM_PATH/lib" >> $GITHUB_ENV | ||
echo "LDFLAGS=-L$LLVM_PATH/lib" >> $GITHUB_ENV | ||
echo "CPPFLAGS=-I$LLVM_PATH/include" >> $GITHUB_ENV | ||
echo "CC=$LLVM_PATH/bin/clang" >> $GITHUB_ENV | ||
echo "CXX=$LLVM_PATH/bin/clang++" >> $GITHUB_ENV | ||
- name: Release build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --no-default-features --features nom --features rdfox-6-3a |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: clippy | ||
on: [push, pull_request] | ||
|
||
env: | ||
RUSTUP_TOOLCHAIN: nightly | ||
RUSTUP_HOME: /home/runner/.cargo | ||
CARGO_TERM_COLOR: always | ||
LLVM_VERSION: 14.0.0 | ||
|
||
jobs: | ||
clippy_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ env.RUSTUP_TOOLCHAIN }} | ||
profile: minimal | ||
components: clippy | ||
override: true | ||
default: true | ||
|
||
- name: Cache LLVM and Clang | ||
id: cache-llvm | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
C:/Program Files/LLVM | ||
./llvm | ||
key: llvm-14 | ||
- name: Install LLVM and Clang | ||
uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: "14" | ||
cached: ${{ steps.cache-llvm.outputs.cache-hit }} | ||
|
||
- name: Check formatting | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-features |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
RUSTDOCFLAGS: --enable-index-page -Zunstable-options | ||
|
||
jobs: | ||
docs: | ||
name: docs | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
profile: minimal | ||
|
||
- name: Cache LLVM and Clang | ||
id: cache-llvm | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
C:/Program Files/LLVM | ||
./llvm | ||
key: llvm-15 | ||
|
||
- name: Install LLVM and Clang | ||
id: install-llvm | ||
uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: 15 | ||
cached: ${{ steps.cache-llvm.outputs.cache-hit }} | ||
|
||
- name: Prepare LLVM | ||
shell: bash | ||
env: | ||
LLVM_PATH: /Users/runner/work/rdfox-sys/rdfox-sys/llvm | ||
LLVM_VERSION: ${{ steps.install-llvm.outputs.version }} | ||
run: | | ||
set -x | ||
# export LLVM_PATH="$(brew --prefix llvm)" | ||
"$LLVM_PATH/bin/clang" -v | ||
echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV | ||
echo "CPATH=$LLVM_PATH/lib/clang/$LLVM_VERSION/include/" >> $GITHUB_ENV | ||
echo "LDFLAGS=-L$LLVM_PATH/lib" >> $GITHUB_ENV | ||
echo "CPPFLAGS=-I$LLVM_PATH/include" >> $GITHUB_ENV | ||
echo "CC=$LLVM_PATH/bin/clang" >> $GITHUB_ENV | ||
echo "CXX=$LLVM_PATH/bin/clang++" >> $GITHUB_ENV | ||
- name: Create rustdoc | ||
run: cargo +nightly doc --verbose --no-deps --lib --bins --workspace --document-private-items | ||
|
||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
folder: target/x86_64-apple-darwin/doc | ||
clean: true | ||
git-config-email: [email protected] | ||
repository-name: EKGF/rdfox-sys | ||
commit-message: "Update" | ||
single-commit: true |
Oops, something went wrong.