Skip to content

Commit 4c5dfb2

Browse files
committed
feat: initial public release — v0.2
Parallax is a Rust-native graph engine for cyber asset intelligence. - parallax-core: Entity, Relationship, Value, Timestamp (HLC) - parallax-store: WAL, MemTable, Segment, MVCC Snapshots - parallax-graph: GraphReader, BFS/DFS traversal, shortest path, blast radius - parallax-query: PQL lexer, parser, planner, executor - parallax-policy: YAML rules, PolicyEvaluator, compliance posture - parallax-ingest: SyncEngine with source-scoped diffing - parallax-connect: Connector trait, topological wave scheduler - parallax-server: Axum REST API with auth and Prometheus metrics - parallax-cli: serve, query, stats, wal dump subcommands - connector-aws-synthetic: seeded LCG emitter for AWS graph data - connector-gcp-synthetic: seeded LCG emitter for GCP graph data 296 tests passing. Apache-2.0 OR MIT.
0 parents  commit 4c5dfb2

135 files changed

Lines changed: 24194 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
RUSTFLAGS: "-Dwarnings"
12+
13+
jobs:
14+
check:
15+
name: Check
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: dtolnay/rust-toolchain@stable
20+
- uses: Swatinem/rust-cache@v2
21+
- run: cargo check --workspace
22+
23+
fmt:
24+
name: Format
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: dtolnay/rust-toolchain@stable
29+
with:
30+
components: rustfmt
31+
- run: cargo fmt --all -- --check
32+
33+
clippy:
34+
name: Clippy
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: dtolnay/rust-toolchain@stable
39+
with:
40+
components: clippy
41+
- uses: Swatinem/rust-cache@v2
42+
- run: cargo clippy --workspace --all-targets -- -D warnings
43+
44+
test:
45+
name: Test
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: dtolnay/rust-toolchain@stable
50+
- uses: Swatinem/rust-cache@v2
51+
- run: cargo test --workspace

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Rust
2+
/target/
3+
**/*.rs.bk
4+
5+
# IDE
6+
.idea/
7+
.vscode/
8+
*.swp
9+
*.swo
10+
*~
11+
12+
# OS
13+
.DS_Store
14+
Thumbs.db
15+
16+
# Environment
17+
.env
18+
.env.local
19+
20+
# Debug
21+
*.pdb

Cargo.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[workspace]
2+
resolver = "2"
3+
members = [
4+
"crates/parallax-core",
5+
"crates/parallax-store",
6+
"crates/parallax-graph",
7+
"crates/parallax-query",
8+
"crates/parallax-policy",
9+
"crates/parallax-ingest",
10+
"crates/parallax-connect",
11+
"crates/parallax-server",
12+
"crates/parallax-cli",
13+
"crates/connector-aws-synthetic",
14+
"crates/connector-gcp-synthetic",
15+
]
16+
17+
[workspace.package]
18+
version = "0.1.0"
19+
edition = "2021"
20+
license = "Apache-2.0 OR MIT"
21+
repository = "https://github.com/copyleftdev/parallax"
22+
rust-version = "1.76"
23+
24+
[workspace.dependencies]
25+
# Shared across crates — pin versions here, reference in crate Cargo.tomls
26+
serde = { version = "1", features = ["derive"] }
27+
serde_yaml = "0.9"
28+
thiserror = "2"
29+
tracing = "0.1"
30+
tokio = { version = "1", features = ["full"] }

LICENSE-APACHE

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
Apache License
2+
Version 2.0, January 2004
3+
http://www.apache.org/licenses/
4+
5+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6+
7+
1. Definitions.
8+
9+
"License" shall mean the terms and conditions for use, reproduction,
10+
and distribution as defined by Sections 1 through 9 of this document.
11+
12+
"Licensor" shall mean the copyright owner or entity authorized by
13+
the copyright owner that is granting the License.
14+
15+
"Legal Entity" shall mean the union of the acting entity and all
16+
other entities that control, are controlled by, or are under common
17+
control with that entity. For the purposes of this definition,
18+
"control" means (i) the power, direct or indirect, to cause the
19+
direction or management of such entity, whether by contract or
20+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
21+
outstanding shares, or (iii) beneficial ownership of such entity.
22+
23+
"You" (or "Your") shall mean an individual or Legal Entity
24+
exercising permissions granted by this License.
25+
26+
"Source" form shall mean the preferred form for making modifications,
27+
including but not limited to software source code, documentation
28+
source, and configuration files.
29+
30+
"Object" form shall mean any form resulting from mechanical
31+
transformation or translation of a Source form, including but
32+
not limited to compiled object code, generated documentation,
33+
and conversions to other media types.
34+
35+
"Work" shall mean the work of authorship made available under
36+
the License, as indicated by a copyright notice that is included
37+
in or attached to the work (an example is provided in the Appendix
38+
below).
39+
40+
"Derivative Works" shall mean any work, whether in Source or Object
41+
form, that is based on (or derived from) the Work and for which the
42+
editorial revisions, annotations, elaborations, or other modifications
43+
represent, as a whole, an original work of authorship. For the purposes
44+
of this License, Derivative Works shall not include works that remain
45+
separable from, or merely link (or bind by name) to the interfaces of,
46+
the Work and Derivative Works thereof.
47+
48+
"Contribution" shall mean, as submitted to the Licensor for inclusion
49+
in the Work by the copyright owner or by an individual or Legal Entity
50+
authorized to submit on behalf of the copyright owner. For the purposes
51+
of this definition, "submitted" means any form of electronic, verbal,
52+
or written communication sent to the Licensor or its representatives,
53+
including but not limited to communication on electronic mailing lists,
54+
source code control systems, and issue tracking systems that are managed
55+
by, or on behalf of, the Licensor for the purpose of discussing and
56+
improving the Work, but excluding communication that is conspicuously
57+
marked or otherwise designated in writing by the copyright owner as
58+
"Not a Contribution."
59+
60+
"Contributor" shall mean Licensor and any Legal Entity on behalf of
61+
whom a Contribution has been received by the Licensor and included
62+
within the Work.
63+
64+
2. Grant of Copyright License. Subject to the terms and conditions of
65+
this License, each Contributor hereby grants to You a perpetual,
66+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
67+
copyright license to reproduce, prepare Derivative Works of,
68+
publicly display, publicly perform, sublicense, and distribute the
69+
Work and such Derivative Works in Source or Object form.
70+
71+
3. Grant of Patent License. Subject to the terms and conditions of
72+
this License, each Contributor hereby grants to You a perpetual,
73+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
74+
(except as stated in this section) patent license to make, have made,
75+
use, offer to sell, sell, import, and otherwise transfer the Work,
76+
where such license applies only to those patent claims licensable
77+
by such Contributor that are necessarily infringed by their
78+
Contribution(s) alone or by combination of their Contribution(s)
79+
with the Work to which such Contribution(s) was submitted. If You
80+
institute patent litigation against any entity (including a cross-claim
81+
or counterclaim in a lawsuit) alleging that the Work or any
82+
Contribution embodied within the Work constitutes direct or contributory
83+
patent infringement, then any patent licenses granted to You under
84+
this License for that Work shall terminate as of the date such
85+
litigation is filed.
86+
87+
4. Redistribution. You may reproduce and distribute copies of the
88+
Work or Derivative Works thereof in any medium, with or without
89+
modifications, and in Source or Object form, provided that You
90+
meet the following conditions:
91+
92+
(a) You must give any other recipients of the Work or Derivative
93+
Works a copy of this License; and
94+
95+
(b) You must cause any modified files to carry prominent notices
96+
stating that You changed the files; and
97+
98+
(c) You must retain, in the Source form of any Derivative Works
99+
that You distribute, all copyright, patent, trademark, and
100+
attribution notices from the Source form of the Work,
101+
excluding those notices that do not pertain to any part of
102+
the Derivative Works; and
103+
104+
(d) If the Work includes a "NOTICE" text file, You must include a
105+
readable copy of the attribution notices contained within such
106+
NOTICE file, in at least one of the following places: within a
107+
a NOTICE text provided with the Derivative Works; within the Source
108+
form or documentation, if provided along with the Derivative Works;
109+
or, within a display generated by the Derivative Works, if and
110+
wherever such third-party notices normally appear. The contents
111+
of the NOTICE file are for informational purposes only and do not
112+
modify the License.
113+
114+
(c) You may add Your own attribution notices within Derivative Works
115+
that You distribute, alongside or as an addendum to the NOTICE text
116+
from the Work, provided that such additional attribution notices
117+
cannot be construed as modifying the License.
118+
119+
5. Submission of Contributions. Unless You explicitly state otherwise,
120+
any Contribution intentionally submitted for inclusion in the Work
121+
by You to the Licensor shall be under the terms and conditions of
122+
this License, without any additional terms or conditions.
123+
124+
6. Trademarks. This License does not grant permission to use the trade
125+
names, trademarks, service marks, or product names of the Licensor,
126+
except as required for reasonable and customary use in describing the
127+
origin of the Work and reproducing the content of the NOTICE file.
128+
129+
7. Disclaimer of Warranty. Unless required by applicable law or agreed
130+
to in writing, Licensor provides the Work (and each Contributor
131+
provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES
132+
OR CONDITIONS OF ANY KIND, either express or implied, including,
133+
without limitation, any warranties or conditions of TITLE,
134+
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
135+
PURPOSE. You are solely responsible for determining the
136+
appropriateness of using or reproducing the Work and assume any
137+
risks associated with Your exercise of permissions under this License.
138+
139+
8. Limitation of Liability. In no event and under no legal theory,
140+
whether in tort (including negligence), contract, or otherwise,
141+
unless required by applicable law (such as deliberate and grossly
142+
negligent acts) or agreed to in writing, shall any Contributor be
143+
liable to You for damages, including any direct, indirect, special,
144+
incidental, or exemplary damages of any character arising as a result
145+
of this License or out of the use or inability to use the Work
146+
(including but not limited to damages for loss of goodwill, work
147+
stoppage, computer failure or malfunction, or all other commercial
148+
damages or losses), even if such Contributor has been advised of the
149+
possibility of such damages.
150+
151+
9. Accepting Warranty or Liability. While redistributing the Work or
152+
Derivative Works thereof, You may choose to offer, and charge a fee
153+
for, acceptance of support, warranty, indemnity, or other liability
154+
obligations and/or rights consistent with this License. However, in
155+
accepting such obligations, You may offer such obligations only on
156+
Your own behalf and on Your sole responsibility, not on behalf of
157+
any other Contributor, and only if You agree to indemnify, defend,
158+
and hold each Contributor harmless for any liability incurred by,
159+
or claims asserted against, such Contributor by reason of your
160+
accepting any such warranty or additional liability.
161+
162+
END OF TERMS AND CONDITIONS

LICENSE-MIT

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 copyleftdev
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)