@ -0,0 +1,2 @@
|
||||
/target
|
||||
opaque*
|
@ -0,0 +1,3 @@
|
||||
[submodule "opaque"]
|
||||
path = opaque
|
||||
url = https://git.openprivacy.ca/openprivacy/opaque.git
|
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/cadnocudd.iml" filepath="$PROJECT_DIR$/.idea/cadnocudd.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/qmetaobject-rs" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,210 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
[[package]]
|
||||
name = "aho-corasick"
|
||||
version = "0.7.13"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86"
|
||||
dependencies = [
|
||||
"memchr",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "byteorder"
|
||||
version = "1.3.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
|
||||
|
||||
[[package]]
|
||||
name = "cadnocudd"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"cstr",
|
||||
"qmetaobject",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cc"
|
||||
version = "1.0.60"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c"
|
||||
|
||||
[[package]]
|
||||
name = "cpp"
|
||||
version = "0.5.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "68bd679e3b11fc72f93b851f8f72b227deb004613fa637ea700a1ef348aecf1f"
|
||||
dependencies = [
|
||||
"cpp_macros",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cpp_build"
|
||||
version = "0.5.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6afdf675ccc9cc6aff408febf02e08584b6b948178624b4da5cc562a78273d3f"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"cpp_common",
|
||||
"lazy_static",
|
||||
"proc-macro2",
|
||||
"regex",
|
||||
"syn",
|
||||
"unicode-xid",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cpp_common"
|
||||
version = "0.5.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7145e26dfba4419500ae901a641b7486fb84ee365967f26f5d8c1069ececa9bf"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"proc-macro2",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cpp_macros"
|
||||
version = "0.5.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b6b14cbed7d9b15f03be8d38438595d2547df5001e2a22b7e59812a3fade09e4"
|
||||
dependencies = [
|
||||
"aho-corasick",
|
||||
"byteorder",
|
||||
"cpp_common",
|
||||
"if_rust_version",
|
||||
"lazy_static",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cstr"
|
||||
version = "0.1.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "19f7a08ed4ecd7e077d4cee63937473e6f7cf57b702a9114ef41751b2cbc0f60"
|
||||
dependencies = [
|
||||
"cstr-macros",
|
||||
"procedural-masquerade",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cstr-macros"
|
||||
version = "0.1.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cd670e5ff58768ef624207fb95709ce63b8d05573fb9a05165f0eef471ea6a3a"
|
||||
dependencies = [
|
||||
"procedural-masquerade",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "if_rust_version"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "46dbcb333e86939721589d25a3557e180b52778cb33c7fdfe9e0158ff790d5ec"
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
version = "1.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
||||
|
||||
[[package]]
|
||||
name = "memchr"
|
||||
version = "2.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.23"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "51ef7cd2518ead700af67bf9d1a658d90b6037d77110fd9c0445429d0ba1c6c9"
|
||||
dependencies = [
|
||||
"unicode-xid",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "procedural-masquerade"
|
||||
version = "0.1.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8f1383dff4092fe903ac180e391a8d4121cc48f08ccf850614b0290c6673b69d"
|
||||
|
||||
[[package]]
|
||||
name = "qmetaobject"
|
||||
version = "0.1.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "85eab8585ec73d20ad37b118e613806c15008172152d291939c0959ede82a866"
|
||||
dependencies = [
|
||||
"cpp",
|
||||
"cpp_build",
|
||||
"lazy_static",
|
||||
"qmetaobject_impl",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "qmetaobject_impl"
|
||||
version = "0.1.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1da093791f2d883b53429170c9c69e603611d3a15652c8a2e6d2c203d8503c2c"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "quote"
|
||||
version = "1.0.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "regex"
|
||||
version = "1.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9c3780fcf44b193bc4d09f36d2a3c87b251da4a046c87795a0d35f4f927ad8e6"
|
||||
dependencies = [
|
||||
"aho-corasick",
|
||||
"memchr",
|
||||
"regex-syntax",
|
||||
"thread_local",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "regex-syntax"
|
||||
version = "0.6.18"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "26412eb97c6b088a6997e05f69403a802a92d520de2f8e63c2b65f9e0f47c4e8"
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "1.0.42"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9c51d92969d209b54a98397e1b91c8ae82d8c87a7bb87df0b29aa2ad81454228"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"unicode-xid",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "thread_local"
|
||||
version = "1.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "unicode-xid"
|
||||
version = "0.2.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
|
@ -0,0 +1,13 @@
|
||||
[package]
|
||||
name = "cadnocudd"
|
||||
version = "0.1.0"
|
||||
authors = ["Sarah Jamie Lewis <sarah@openprivacy.ca>"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
qmetaobject = "0.1.4"
|
||||
cstr = "0.1"
|
||||
|
||||
|
@ -0,0 +1,9 @@
|
||||
Proof of concept getting [Opaque](https://git.openprivacy.ca/openprivacy/opaque/)
|
||||
components working in Rust.
|
||||
|
||||
## Building
|
||||
|
||||
LD_LIBRARY_PATH = /path/to/Qt/<version>/<arch>/lib/
|
||||
PATH += /path/to/Qt/<version>/<arch>/bin
|
||||
|
||||
cargo run --release
|
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
for f in *.svg; do
|
||||
echo "converting $f"
|
||||
sed -i 's/>/><style>path\{stroke:#FFFFFF;fill:#FFFFFF\}<\/style>/' $f #> $f.intermediate
|
||||
#inkscape -z -e $f.png -w 1024 -h 1024 $f.intermediate
|
||||
done
|
After Width: | Height: | Size: 860 B |
After Width: | Height: | Size: 960 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 630 B |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 633 B |
After Width: | Height: | Size: 630 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 894 B |
After Width: | Height: | Size: 479 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 900 B |
After Width: | Height: | Size: 691 B |
After Width: | Height: | Size: 795 B |
After Width: | Height: | Size: 890 B |
After Width: | Height: | Size: 594 B |
After Width: | Height: | Size: 635 B |
After Width: | Height: | Size: 633 B |
After Width: | Height: | Size: 633 B |
After Width: | Height: | Size: 632 B |
After Width: | Height: | Size: 993 B |
After Width: | Height: | Size: 826 B |
After Width: | Height: | Size: 745 B |
After Width: | Height: | Size: 477 B |
After Width: | Height: | Size: 702 B |
After Width: | Height: | Size: 649 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 985 B |
After Width: | Height: | Size: 607 B |
After Width: | Height: | Size: 978 B |
After Width: | Height: | Size: 763 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 838 B |
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
-->
|
||||
for f in *.svg; do
|
||||
echo "converting $f"
|
||||
sed -i 's/>/><style type="text/css">path\{stroke:#FFFFFF;fill:#FFFFFF\}<\/style>/' $f #> $f.intermediate
|
||||
#inkscape -z -e $f.png -w 1024 -h 1024 $f.intermediate
|
||||
done
|
||||
-->
|
After Width: | Height: | Size: 833 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 764 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 617 B |
After Width: | Height: | Size: 843 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 819 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 913 B |
After Width: | Height: | Size: 755 B |
After Width: | Height: | Size: 1021 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 917 B |
After Width: | Height: | Size: 722 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 775 B |
After Width: | Height: | Size: 829 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 549 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 994 B |
After Width: | Height: | Size: 672 B |
After Width: | Height: | Size: 552 B |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 786 B |
After Width: | Height: | Size: 843 B |
After Width: | Height: | Size: 970 B |
After Width: | Height: | Size: 691 B |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 965 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1007 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1015 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 966 B |
After Width: | Height: | Size: 787 B |
After Width: | Height: | Size: 1020 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.6 KiB |