Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOSP improvements #149

Merged
merged 227 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
5b6f1ee
Include rustc version, fix worspace wrapper
JustusAdam Feb 26, 2024
fedd43a
Update flowistry, make too many returns a warnign
JustusAdam Feb 26, 2024
994dacb
Make it work with unresolvable trait methods
JustusAdam Feb 27, 2024
5dc195f
Updating lemmy
JustusAdam Feb 27, 2024
cfe4d83
Merge branch 'justus-experimentation' of github.com:brownsys/paralega…
JustusAdam Feb 27, 2024
ab4a9ab
lemmy policies for new api
carolynzech Feb 28, 2024
fa0488b
Bump flowistry, aff async_trait hack, allow tracing logging
JustusAdam Feb 29, 2024
8f4961f
Merge branch 'justus-experimentation' of github.com:brownsys/paralega…
JustusAdam Feb 29, 2024
ccc3dfe
Exclude function types
JustusAdam Feb 29, 2024
3ca2815
Pull forward the error handling code
JustusAdam Mar 1, 2024
7ff5b4b
Merge branch 'main' into error-pr
JustusAdam Mar 1, 2024
0cbea5e
Fixed up the errors
JustusAdam Mar 1, 2024
925cd02
Merge remote-tracking branch 'origin/error-pr' into justus-experiment…
JustusAdam Mar 2, 2024
745a9b2
Move node printing top diagnostics and debug tab handling in line pri…
JustusAdam Mar 2, 2024
626ae89
Make happens before print its nodes
JustusAdam Mar 2, 2024
e01896d
Use node printing diagnostics
JustusAdam Mar 2, 2024
0a95eb3
Track always_happens_before origins
JustusAdam Mar 2, 2024
25e4846
Move node printing top diagnostics and debug tab handling in line pri…
JustusAdam Mar 2, 2024
f1470c2
Expose other diagnostic types
JustusAdam Mar 3, 2024
4c84fcd
Arrgument access
JustusAdam Mar 3, 2024
d682784
Conveneient location printing
JustusAdam Mar 3, 2024
61b0615
Revival of marker tests
JustusAdam Mar 3, 2024
7c81d2b
Chatty websubmit policy
JustusAdam Mar 3, 2024
043a2af
Debugging marker assignment
JustusAdam Mar 3, 2024
dbaf281
Expose other diagnostic types
JustusAdam Mar 3, 2024
494a5b7
Make happens before print its nodes
JustusAdam Mar 2, 2024
81e7740
Track always_happens_before origins
JustusAdam Mar 2, 2024
a40804d
Conveneient location printing
JustusAdam Mar 3, 2024
61a9a63
Include argument spans
JustusAdam Mar 3, 2024
48455fb
Intern the source files
JustusAdam Mar 3, 2024
4fee6ee
A missing documentation
JustusAdam Mar 3, 2024
e14d8af
Don't print the checkpoints for no reason
JustusAdam Mar 3, 2024
fb31dd9
Fix documentation
JustusAdam Mar 3, 2024
26bb8e7
Simplifying
JustusAdam Mar 3, 2024
24aaddf
Wrong casing
JustusAdam Mar 3, 2024
9a2a2a5
Expanded builder
JustusAdam Mar 3, 2024
562920f
Merge branch 'error-pr' into justus-experimentation
JustusAdam Mar 3, 2024
f2317cf
Use mut ref for builder
JustusAdam Mar 3, 2024
36faaf4
Builder integration
JustusAdam Mar 3, 2024
ed3958f
Use mut ref for builder
JustusAdam Mar 3, 2024
c14d88f
Clippy
JustusAdam Mar 3, 2024
d18a73d
Make "always happens before" "must use"
JustusAdam Mar 3, 2024
209a9f5
Merge branch 'error-pr' into justus-experimentation
JustusAdam Mar 3, 2024
871af9f
Extra tests
JustusAdam Mar 4, 2024
af206b0
Fix warnings
JustusAdam Mar 4, 2024
6e36a27
Fix marker assignment
JustusAdam Mar 4, 2024
ee78ad0
Add some debug printing
JustusAdam Mar 4, 2024
8fc50e4
Use variable definition spans for more precision
JustusAdam Mar 4, 2024
bb43d3b
Subspans
JustusAdam Mar 4, 2024
e97bdb0
Test fixes
JustusAdam Mar 4, 2024
e6f6922
Subspans for subdiagnostics
JustusAdam Mar 4, 2024
e1ab7c8
Fixed a sumb mistake in async argument handling
JustusAdam Mar 4, 2024
9df3327
Flexible tracing for always_happens_before
JustusAdam Mar 4, 2024
4bad666
Use heavy tracing
JustusAdam Mar 4, 2024
e827c20
Forgot to bump flowistry version
JustusAdam Mar 5, 2024
372e8cd
Statistics in policy and analyzer
JustusAdam Mar 5, 2024
cdbe440
Use stats
JustusAdam Mar 5, 2024
c3a7f36
Fix a bug in async marker attachment handling
JustusAdam Mar 5, 2024
56f9b32
Emit controller paths
JustusAdam Mar 5, 2024
6defc40
Merge branch 'main' into justus-experimentation
JustusAdam Mar 6, 2024
b6800b2
Pull PDG construction code into this repo
JustusAdam Mar 6, 2024
a9aad79
Formatting
JustusAdam Mar 6, 2024
4ceb9c9
Clippy
JustusAdam Mar 6, 2024
84ea721
Merge branch 'merge-flowistry' into sosp
JustusAdam Mar 6, 2024
3329c9c
Aggressive flowistry
JustusAdam Mar 6, 2024
9423c1f
Duplicate package
JustusAdam Mar 6, 2024
6dac539
Merge error
JustusAdam Mar 6, 2024
cb77f1d
Merge branch 'sosp' into sosp-justus
JustusAdam Mar 6, 2024
00e59f8
Emit timestamps
JustusAdam Mar 7, 2024
6af6657
Avoid pretty place crash
JustusAdam Mar 7, 2024
952c6c3
Bump flowistry
JustusAdam Mar 7, 2024
bf90566
Reintroduce the async resolution
JustusAdam Mar 7, 2024
cdd0ae4
Accept the `--props` argument
JustusAdam Mar 7, 2024
78605f7
Exit 1 on policy fail
JustusAdam Mar 7, 2024
18c259e
update lemmy props
carolynzech Mar 7, 2024
2298a4a
Compile test for box
JustusAdam Mar 7, 2024
278a953
Workaround that might be unsound
JustusAdam Mar 8, 2024
bc1de74
Shut up rust analyzer
JustusAdam Mar 8, 2024
89fd940
Merge remote-tracking branch 'origin/fix-lemmy-policies' into sosp-ju…
JustusAdam Mar 8, 2024
460f99f
Rustc plugin update for handle deps correctly
JustusAdam Mar 8, 2024
4e7c7c7
Integration test framework
JustusAdam Mar 8, 2024
787c2fe
Fix the integration test framework
JustusAdam Mar 8, 2024
f7e069b
Working on websubmit test case
JustusAdam Mar 8, 2024
739fb5d
Integration test framework
JustusAdam Mar 8, 2024
1288292
Fix the integration test framework
JustusAdam Mar 8, 2024
b7300fa
missing control flow edge lemmy debugging
carolynzech Mar 10, 2024
ef60c1d
Add in-memory cache to PDG construction to avoid redundancy (#134)
willcrichton Mar 11, 2024
3d43e4a
Merge branch 'sosp' into sosp-justus
JustusAdam Mar 11, 2024
375cc4d
Dependency builder
JustusAdam Mar 11, 2024
25aae40
Start async_trait test case
JustusAdam Mar 11, 2024
de339a7
Clean dirs if policy succeeds
JustusAdam Mar 11, 2024
0bc02fe
Simple async trait test cases
JustusAdam Mar 11, 2024
e542c3f
Somehow in this mess the marker problem got fixed
JustusAdam Mar 12, 2024
1424483
Test case for async markers on traits
JustusAdam Mar 12, 2024
5a72877
Fix assertion
JustusAdam Mar 12, 2024
c83523b
WIP edge kinds
JustusAdam Mar 12, 2024
2ba7dc0
Track use type on edges
JustusAdam Mar 12, 2024
b03bab1
Debugging edge tracking and modular mutation visitor
JustusAdam Mar 12, 2024
139bfc5
Finished edge tracking. All PDG tests pass
JustusAdam Mar 13, 2024
04686a5
Fix type here
JustusAdam Mar 13, 2024
d5a9c7d
Fix test case
JustusAdam Mar 13, 2024
8e0be64
Calling async trait test case from lemmy
JustusAdam Mar 13, 2024
0f29dab
Don't crash on async trait call
JustusAdam Mar 13, 2024
fc2d1d2
Fixing websubmit failures
JustusAdam Mar 13, 2024
dc29cdc
Make always happens before only check data for now
JustusAdam Mar 13, 2024
16c8531
Slight optimization of marker detection code
JustusAdam Mar 13, 2024
8cb166f
Enable integration tests
JustusAdam Mar 13, 2024
72b846a
Source line and function inlining statistics
JustusAdam Mar 14, 2024
1dd757d
Clean up the stats api a bit
JustusAdam Mar 14, 2024
660a074
Merge remote-tracking branch 'origin/lemmy-debug' into sosp-justus
JustusAdam Mar 14, 2024
cceb843
Edit error messages for lemmy, add silent option
JustusAdam Mar 14, 2024
dfac5bb
Minimal test case for plume issue
JustusAdam Mar 15, 2024
9da0411
Minimal test case for atomic issue
JustusAdam Mar 15, 2024
357f21a
Remove lib argument
JustusAdam Mar 15, 2024
277e681
Created a test case of the no-argument functions
JustusAdam Mar 16, 2024
e4d4185
Test case for interplay between marker assignment and monomorphization
JustusAdam Mar 16, 2024
2519ef8
Test case for flowing to self
JustusAdam Mar 16, 2024
f245b38
Fix markers on returns of functions with no arguments
JustusAdam Mar 16, 2024
c42efa7
Fix nodes flowing to themselves
JustusAdam Mar 16, 2024
951055d
Found the first problem with atomic
JustusAdam Mar 17, 2024
8e52c26
Completed atomic policy. Passes its test case
JustusAdam Mar 17, 2024
42d22fa
Added a test case for buggy atomic
JustusAdam Mar 17, 2024
828e896
Test cases to try and nail down the Atomic issue
JustusAdam Mar 17, 2024
95e321f
Silence useless warnings
JustusAdam Mar 17, 2024
20f2bbb
Fix marker name
JustusAdam Mar 17, 2024
9ae3678
manual node clusters to ensure invalid code fails policy in test
JustusAdam Mar 17, 2024
45f30a4
Combine inputs on arguments
JustusAdam Mar 17, 2024
7710385
Updated plume policy
JustusAdam Mar 17, 2024
404208a
Minimal test case for lemmy error
JustusAdam Mar 17, 2024
c52c40e
Incfluencers dont work like flows to?
JustusAdam Mar 18, 2024
b6c84e9
`flows_to` doesn't workk like `influencees` for some reason
JustusAdam Mar 18, 2024
f1151e1
Optional indices
JustusAdam Mar 18, 2024
4d93f7d
Merge branch 'sosp-justus' of github.com:brownsys/paralegal into sosp…
JustusAdam Mar 18, 2024
0a66fa0
Factor out graph converter
JustusAdam Mar 18, 2024
175c86b
Adaptive inlining args and sketch algo
JustusAdam Mar 18, 2024
a774afc
Fix the context test case and TargetUse determination
JustusAdam Mar 19, 2024
8ec0aa5
Clippy and formatting
JustusAdam Mar 19, 2024
504d30b
Reduce duplication of monomorphization ode
JustusAdam Mar 19, 2024
416d7ea
Finished impl for overapprox marker assign on depth limit
JustusAdam Mar 19, 2024
9422002
Fix docs and make `caller` fallible
JustusAdam Mar 19, 2024
99a86b3
Don't include type markers in reachable markers for local functions
JustusAdam Mar 19, 2024
79484a4
Fix when to include direct markers
JustusAdam Mar 19, 2024
be9ed95
Report stats
JustusAdam Mar 19, 2024
e1dbfa4
Explanation for the versions
JustusAdam Mar 19, 2024
776211c
Fixing overzealous reachable marker code
JustusAdam Mar 19, 2024
e52b98a
Adding back what was commented out for debugging
JustusAdam Mar 19, 2024
1351d58
Better lemmy error
JustusAdam Mar 19, 2024
7be4121
This guard is no longer necessary
JustusAdam Mar 19, 2024
a4bbf26
Teach the marker reachability about async
JustusAdam Mar 20, 2024
c62d23c
Need to mono before trying async
JustusAdam Mar 20, 2024
f4a492e
Merge remote-tracking branch 'origin/sosp' into sosp-justus
JustusAdam Mar 20, 2024
1eb4cc7
Starting to sketch a runner
JustusAdam Mar 20, 2024
5e3ee96
Features should be optional
JustusAdam Mar 21, 2024
0c9e827
Merge branch 'sosp-justus' of github.com:brownsys/paralegal into sosp…
JustusAdam Mar 21, 2024
f638b5d
Infrastructure and general stat collection for experiment runner
JustusAdam Mar 22, 2024
95f80a3
Collect marker stats
JustusAdam Mar 23, 2024
cc80074
Hook up the stat collection and make it per-controller
JustusAdam Mar 23, 2024
a31fa91
More stats
JustusAdam Mar 23, 2024
1f16ce2
Move evaluation and props to dfpp-verification
JustusAdam Mar 23, 2024
74cb5e0
Unused import
JustusAdam Mar 25, 2024
e7a6fdc
Debugging atomic
JustusAdam Mar 26, 2024
d1ff064
Fix control flow dependency detection
JustusAdam Mar 26, 2024
a12ac89
Allow programmatic inspection of reached
JustusAdam Mar 28, 2024
a82c1dc
Fix bugs with roots
JustusAdam Mar 28, 2024
4ba8720
Requirements to count roll-forward lines
JustusAdam Mar 29, 2024
3e04143
Emit spans for analyzed functions
JustusAdam Mar 29, 2024
132b505
Count ourselves in analyzed spans
JustusAdam Mar 29, 2024
13ac89a
Make async support not error, but emit warnings
JustusAdam Mar 30, 2024
3ea7466
Refactor Policy API
JustusAdam Mar 30, 2024
b414ba0
Aloow callbacks to report if functions aren't inlined
JustusAdam Mar 30, 2024
b77a65d
Deduplication of reachable markers
JustusAdam Mar 30, 2024
b18a5cc
Error with useful information on async inline failure
JustusAdam Mar 30, 2024
5ee3912
Dump MIR in flowistry
JustusAdam Apr 1, 2024
10e9028
Don't try asyncness for parents that aren't functions
JustusAdam Apr 1, 2024
8d0439b
Forgot a deprecation warning here
JustusAdam Apr 1, 2024
789853b
Allow code export
JustusAdam Apr 1, 2024
77df76d
WIP contile test case
JustusAdam Apr 1, 2024
2e07074
Ignore test case for now
JustusAdam Apr 2, 2024
540fae1
WIP contile test case
JustusAdam Apr 2, 2024
9c48e97
make parse errors report locations
JustusAdam Apr 2, 2024
a574bd9
Use separate code file
JustusAdam Apr 3, 2024
057ba3f
Add a shortest path primitive for debugging
JustusAdam Apr 3, 2024
c664fbf
A reduced-size contile
JustusAdam Apr 3, 2024
926d7ba
don't return a shortest path if there is none
JustusAdam Apr 3, 2024
9e1f107
Starting marker test cases
JustusAdam Apr 4, 2024
7dfaaef
Improve handling of higher-order futures (#137)
willcrichton Apr 5, 2024
22c2682
add missing DefIds
JustusAdam Apr 4, 2024
2f95161
Additional marker test cases
JustusAdam Apr 4, 2024
b2e091c
Import error
JustusAdam Apr 5, 2024
593e192
Update the marker assignment policy (#139)
JustusAdam Apr 6, 2024
fc90617
Test case for the atomic compile failure
JustusAdam Apr 7, 2024
17110e7
A new approach to entrypoint generics
JustusAdam Apr 7, 2024
b3288a1
Make sure the order is right
JustusAdam Apr 7, 2024
3fd0d03
Handle lifetime controller arguments
JustusAdam Apr 7, 2024
2ddfc82
Object safety test case
JustusAdam Apr 8, 2024
bd002dd
Add a weird hack for Hyperswitch
JustusAdam Apr 10, 2024
18de4fc
Refactor for readability
JustusAdam Apr 11, 2024
c7b1f0a
Use reconstituted spans to deal with macros
JustusAdam Apr 11, 2024
a5740aa
Update determination for analyzed functions
JustusAdam Apr 13, 2024
3f8a73d
Fix new line counting crashes with dyn
JustusAdam Apr 13, 2024
44d710c
Use bincode
JustusAdam Apr 13, 2024
7076509
Expose path
JustusAdam Apr 13, 2024
b95121e
Fix test utils
JustusAdam Apr 15, 2024
068bd4c
Fix LoC reporting
JustusAdam Apr 15, 2024
ef3800c
Not needed it seems
JustusAdam Apr 16, 2024
a181639
Light optimization of flows_to_ctrl
JustusAdam Apr 16, 2024
5865245
WIP line number consistency
JustusAdam Apr 16, 2024
06081a9
Merge branch 'sosp' of github.com:brownsys/paralegal into sosp
JustusAdam Apr 16, 2024
d036bfd
Don't report diagnostics twice
JustusAdam Apr 17, 2024
53c04d6
Export marker annotations
JustusAdam Apr 17, 2024
5923957
Allow type checks on node
JustusAdam Apr 17, 2024
db06704
Reintroduce seen_locs
JustusAdam Apr 18, 2024
1ca8b2b
This counting stuff sucks
JustusAdam Apr 18, 2024
4b72475
Trait functions 🙄
JustusAdam Apr 18, 2024
3f7ab8d
Actually need to count later
JustusAdam Apr 18, 2024
025998e
Better indirect call resolution
JustusAdam Apr 19, 2024
062ceac
Merge remote-tracking branch 'origin/main' into sosp
JustusAdam Apr 26, 2024
e5f2fdc
Update Cargo.lock
JustusAdam Apr 26, 2024
2d43686
Remove weird hacks
JustusAdam Apr 30, 2024
6c0cac3
Merge branch 'main' into sosp
JustusAdam May 1, 2024
2973add
Fix doc command
JustusAdam May 1, 2024
1a7ce83
Fix all warnings
JustusAdam May 1, 2024
9e08c39
Fix marker tests
JustusAdam May 1, 2024
0d766b9
Fix the rest of the tests
JustusAdam May 1, 2024
6366dcf
Clippy
JustusAdam May 1, 2024
19913ba
Dead code removal
JustusAdam May 1, 2024
426ab35
Deal with unused imports
JustusAdam May 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ flow-graph.json

.DS_Store
*.flowistry-pdg.pdf

*.mir
*.o
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"unresolved-proc-macro"
],
"rust-analyzer.rustc.source": "discover",
"rust-analyzer.workspace.symbol.search.scope": "workspace_and_dependencies"
"rust-analyzer.workspace.symbol.search.scope": "workspace_and_dependencies",
"rust-analyzer.showUnlinkedFileNotification": false
}
42 changes: 39 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ anyhow = { version = "1.0.72", features = ["backtrace"] }
[profile.release]
debug = true

#[replace]
#"rustc_utils:0.6.0-nightly-2023-04-12" = { git = "https://github.com/JustusAdam/rustc_plugin", rev = "80d92411810c709522119407be24745555adc87a" }
#"rustc_plugin:0.6.0-nightly-2023-04-12" = { git = "https://github.com/JustusAdam/rustc_plugin", rev = "80d92411810c709522119407be24745555adc87a" }
# [replace]
# "rustc_utils:0.7.4-nightly-2023-08-25" = { path = "../rustc_plugin/crates/rustc_utils" }
# "rustc_plugin:0.7.4-nightly-2023-08-25" = { path = "../rustc_plugin/crates/rustc_plugin" }
9 changes: 3 additions & 6 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ args = ["install", "--locked", "--path", "crates/paralegal-flow"]

[tasks.pdg-tests]
description = "The suite of synthetic tests for the PDG and the policy framweork."
dependencies = [
"analyzer-tests",
"policy-framework-tests",
"guide-project",
]
dependencies = ["analyzer-tests", "policy-framework-tests", "guide-project"]

[tasks.check-all]
description = "Perform all formatting-like checks. This is the same set that runs in the CI."
Expand Down Expand Up @@ -68,6 +64,7 @@ args = [
"new_alias_analysis_tests",
"--test",
"async_tests",
"--no-fail-fast",
]

[tasks.policy-framework-tests]
Expand Down Expand Up @@ -221,6 +218,6 @@ dependencies = ["clean-rustc-docs-location"]
[tasks.clean-rustc-docs-location]
command = "rm"
args = [
"-f",
"-rf",
"${RUSTUP_HOME}/toolchains/${RUSTUP_TOOLCHAIN}/share/doc/rust/html/rustc",
]
2 changes: 1 addition & 1 deletion crates/flowistry_pdg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ cfg-if = "1.0.0"
internment = { version = "0.7.4", features = ["serde"] }

strum = { workspace = true }
serde = { workspace = true }
serde = { workspace = true, features = ["derive"] }
2 changes: 1 addition & 1 deletion crates/flowistry_pdg/src/rustc_portable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! The idea is that you can then define your data structure over this
//! (including serialization) like so, using `cfg_attr:
//!
//! ```
//! ```ignore
//! pub struct GlobalLocationS {
//! #[cfg_attr(feature = "rustc", serde(with = "rustc_proxies::BodyId"))]
//! pub function: BodyId,
Expand Down
6 changes: 3 additions & 3 deletions crates/flowistry_pdg_construction/src/construct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,18 +290,18 @@ impl<'tcx> PdgParams<'tcx> {
/// ```
/// # #![feature(rustc_private)]
/// # extern crate rustc_middle;
/// # use flowistry_pdg_construction::{PdgParams, SkipCall, CallChanges};
/// # use flowistry_pdg_construction::{PdgParams, SkipCall, CallChanges, CallChangeCallbackFn};
/// # use rustc_middle::ty::TyCtxt;
/// # const THRESHOLD: usize = 5;
/// # fn f<'tcx>(tcx: TyCtxt<'tcx>, params: PdgParams<'tcx>) -> PdgParams<'tcx> {
/// params.with_call_change_callback(|info| {
/// params.with_call_change_callback(CallChangeCallbackFn::new(|info| {
/// let skip = if info.call_string.len() > THRESHOLD {
/// SkipCall::Skip
/// } else {
/// SkipCall::NoSkip
/// };
/// CallChanges::default().with_skip(skip)
/// })
/// }))
/// # }
/// ```
pub fn with_call_change_callback(self, f: impl CallChangeCallback<'tcx> + 'tcx) -> Self {
Expand Down
19 changes: 8 additions & 11 deletions crates/paralegal-flow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,27 @@ ordermap = "0.3"
trait_enum = "0.5"
pretty = "0.11"
nom = "7"
log = "0.4"
log = { version = "0.4", features = ["serde"] }
simple_logger = "2"
num-derive = "0.4"
num-traits = "0.2"
petgraph = { workspace = true }
humantime = "2"
strum = { workspace = true }

enum-map = "2.7"
serial_test = "2.0.0"
itertools = "0.12"
anyhow = "1.0.72"
thiserror = "1"
serde_bare = "0.5.0"
toml = "0.7"

#dot = "0.1"
dot = { git = "https://github.com/JustusAdam/dot-rust", rev = "ff2b42ceda98c639c8ea3cbfc56b83d6e06e8106" }
#dot = {path = "../../clones/dot-rust" }

serde_bare = "0.5.0"
serde_json = "1"
toml = "0.7"


# This is just for pinning this dependency
camino = "= 1.0.9"
serial_test = "2.0.0"
itertools = "0.12"
anyhow = "1.0.72"
thiserror = "1"

[build-dependencies]
chrono = "0.4"
Expand Down
10 changes: 10 additions & 0 deletions crates/paralegal-flow/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,14 @@ fn main() {

let toolchain_path = rustup_toolchain_path();
println!("cargo:rustc-env=SYSROOT_PATH={}", toolchain_path.display());

let rustc_path = std::env::var("RUSTC").unwrap();
let rustc_version = std::process::Command::new(rustc_path)
.arg("--version")
.output()
.unwrap();
println!(
"cargo:rustc-env=RUSTC_VERSION=\"{}\"",
String::from_utf8(rustc_version.stdout).unwrap()
);
}
Loading
Loading