centralize package versions except for vendor and excluded

This commit is contained in:
Brendan Hansknecht 2023-03-06 19:29:09 -08:00
parent 5485c8a5b0
commit 4a89bee0a5
No known key found for this signature in database
GPG key ID: A199D0660F95F948
66 changed files with 292 additions and 222 deletions

View file

@ -1,8 +1,9 @@
[package]
name = "roc_alias_analysis"
authors.workspace = true
edition.workspace = true
license.workspace = true
name = "roc_alias_analysis"
version.workspace = true
[dependencies]
@ -12,4 +13,5 @@ roc_error_macros = {path = "../../error_macros"}
roc_module = {path = "../module"}
roc_mono = {path = "../mono"}
roc_debug_flags = {path = "../debug_flags"}
bumpalo.workspace = true

View file

@ -1,11 +1,12 @@
[package]
name = "arena-pool"
description = "An implementation of an arena allocator designed for the compiler's workloads."
version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
edition.workspace = true
description = "An implementation of an arena allocator designed for the compiler's workloads."
[dependencies]
roc_error_macros = { path = "../../error_macros" }

View file

@ -1,10 +1,11 @@
[package]
name = "roc_build"
description = "Responsible for coordinating building and linking of a Roc app with its host."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Responsible for coordinating building and linking of a Roc app with its host."
[dependencies]
roc_collections = { path = "../collections" }
@ -41,7 +42,7 @@ inkwell.workspace = true
indoc.workspace = true
[target.'cfg(target_os = "macos")'.dependencies]
serde_json = "1.0.85"
serde_json.workspace = true
[features]
target-arm = []

View file

@ -1,10 +1,11 @@
[package]
name = "roc_builtins"
description = "Provides the Roc functions and modules that are implicitly imported into every module."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Provides the Roc functions and modules that are implicitly imported into every module."
[dependencies]
roc_collections = { path = "../collections" }
@ -12,12 +13,14 @@ roc_region = { path = "../region" }
roc_module = { path = "../module" }
roc_target = { path = "../roc_target" }
roc_utils = { path = "../../utils" }
tempfile.workspace = true
[build-dependencies]
roc_utils = { path = "../../utils" }
# dunce can be removed once ziglang/zig#5109 is fixed
dunce = "1.0.3"
roc_utils = { path = "../../utils" }
[target.'cfg(target_os = "macos")'.build-dependencies]
tempfile.workspace = true

View file

@ -1,10 +1,11 @@
[package]
name = "roc_can"
description = "Canonicalize a roc abstract syntax tree, resolving symbols, re-ordering definitions, and preparing a module for type inference."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Canonicalize a roc abstract syntax tree, resolving symbols, re-ordering definitions, and preparing a module for type inference."
[dependencies]
roc_collections = { path = "../collections" }
@ -17,12 +18,12 @@ roc_problem = { path = "../problem" }
roc_types = { path = "../types" }
roc_serialize = { path = "../serialize" }
ven_pretty = { path = "../../vendor/pretty" }
bumpalo.workspace = true
static_assertions.workspace = true
bitvec.workspace = true
ven_pretty = { path = "../../vendor/pretty" }
[dev-dependencies]
pretty_assertions.workspace = true
indoc.workspace = true

View file

@ -1,10 +1,11 @@
[package]
name = "roc_collections"
description = "Domain-specific collections created for the needs of the compiler."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Domain-specific collections created for the needs of the compiler."
[dependencies]
fnv.workspace = true

View file

@ -1,10 +1,11 @@
[package]
name = "roc_constrain"
description = "Responsible for building the set of constraints that are used during type inference of a program, and for gathering context needed for pleasant error messages when a type error occurs."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Responsible for building the set of constraints that are used during type inference of a program, and for gathering context needed for pleasant error messages when a type error occurs."
[dependencies]
roc_collections = { path = "../collections" }

View file

@ -1,9 +1,10 @@
[package]
name = "roc_debug_flags"
description = "Environment variables that can be toggled to aid debugging of the compiler itself."
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
description = "Environment variables that can be toggled to aid debugging of the compiler itself."
[dependencies]

View file

@ -1,10 +1,11 @@
[package]
name = "roc_derive"
description = "Provides auto-derivers for builtin abilities like `Hash` and `Decode`."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Provides auto-derivers for builtin abilities like `Hash` and `Decode`."
[dependencies]
roc_collections = { path = "../collections" }
@ -15,6 +16,7 @@ roc_module = { path = "../module" }
roc_types = { path = "../types" }
roc_can = { path = "../can" }
roc_unify = { path = "../unify" }
bumpalo.workspace = true
[features]

View file

@ -1,5 +1,6 @@
[package]
name = "roc_derive_key"
version.workspace = true
authors.workspace = true
license.workspace = true

View file

@ -1,10 +1,11 @@
[package]
name = "roc_exhaustive"
description = "Provides exhaustiveness checking for Roc."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Provides exhaustiveness checking for Roc."
[dependencies]
roc_collections = { path = "../collections" }

View file

@ -1,14 +1,16 @@
[package]
name = "roc_fmt"
description = "The roc code formatter."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "The roc code formatter."
[dependencies]
roc_collections = { path = "../collections" }
roc_region = { path = "../region" }
roc_module = { path = "../module" }
roc_parse = { path = "../parse" }
bumpalo.workspace = true

View file

@ -1,6 +1,7 @@
[package]
name = "roc_gen_dev"
description = "The development backend for the Roc compiler"
version.workspace = true
authors.workspace = true
license.workspace = true

View file

@ -1,6 +1,7 @@
[package]
name = "roc_gen_llvm"
description = "The LLVM backend for the Roc compiler"
version.workspace = true
authors.workspace = true
license.workspace = true

View file

@ -1,10 +1,11 @@
[package]
name = "roc_gen_wasm"
description = "Provides the WASM backend to generate Roc binaries."
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
description = "Provides the WASM backend to generate Roc binaries."
[dependencies]
roc_builtins = { path = "../builtins" }

View file

@ -1,7 +1,8 @@
[package]
name = "roc_ident"
description = "Implements data structures used for efficiently representing small strings, like identifiers."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Implements data structures used for efficiently representing small strings, like identifiers."

View file

@ -1,10 +1,11 @@
[package]
name = "roc_late_solve"
description = "Provides type unification and solving primitives from the perspective of the compiler backend."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Provides type unification and solving primitives from the perspective of the compiler backend."
[dependencies]
roc_types = { path = "../types" }

View file

@ -1,10 +1,11 @@
[package]
name = "roc_load"
description = "Used to load a .roc file and coordinate the compiler pipeline, including parsing, type checking, and code generation."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Used to load a .roc file and coordinate the compiler pipeline, including parsing, type checking, and code generation."
[dependencies]
roc_load_internal = { path = "../load_internal" }

View file

@ -1,10 +1,11 @@
[package]
name = "roc_load_internal"
description = "The internal implementation of roc_load, separate from roc_load to support caching."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "The internal implementation of roc_load, separate from roc_load to support caching."
[dependencies]
roc_collections = { path = "../collections" }

View file

@ -1,16 +1,18 @@
[package]
name = "roc_module"
description = "Implements data structures used for efficiently representing unique modules and identifiers in Roc programs."
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
description = "Implements data structures used for efficiently representing unique modules and identifiers in Roc programs."
[dependencies]
roc_region = { path = "../region" }
roc_ident = { path = "../ident" }
roc_collections = { path = "../collections" }
roc_error_macros = {path = "../../error_macros"}
bumpalo.workspace = true
static_assertions.workspace = true
snafu.workspace = true

View file

@ -1,10 +1,11 @@
[package]
name = "roc_mono"
description = "Roc's main intermediate representation (IR), which is responsible for monomorphization, defunctionalization, inserting ref-count instructions, and transforming a Roc program into a form that is easy to consume by a backend."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Roc's main intermediate representation (IR), which is responsible for monomorphization, defunctionalization, inserting ref-count instructions, and transforming a Roc program into a form that is easy to consume by a backend."
[dependencies]
roc_collections = { path = "../collections" }

View file

@ -1,10 +1,11 @@
[package]
name = "roc_parse"
description = "Implements the Roc parser, which transforms a textual representation of a Roc program to an AST."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Implements the Roc parser, which transforms a textual representation of a Roc program to an AST."
[features]
"parse_debug_trace" = []
@ -18,8 +19,7 @@ bumpalo.workspace = true
encode_unicode.workspace = true
[dev-dependencies]
proptest = "1.0.0"
proptest.workspace = true
criterion.workspace = true
pretty_assertions.workspace = true
indoc.workspace = true

View file

@ -1,10 +1,11 @@
[package]
name = "roc_problem"
description = "Provides types to describe problems that can occur when compiling Roc code."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Provides types to describe problems that can occur when compiling Roc code."
[dependencies]
roc_collections = { path = "../collections" }

View file

@ -1,10 +1,11 @@
[package]
name = "roc_region"
description = "Data structures for storing source-code-location information, used heavily for contextual error messages."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Data structures for storing source-code-location information, used heavily for contextual error messages."
[dependencies]
static_assertions.workspace = true

View file

@ -1,13 +1,13 @@
[package]
name = "roc_target"
description = "Provides types and helpers for compiler targets such as default_x86_64."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Provides types and helpers for compiler targets such as default_x86_64."
[dependencies]
strum.workspace = true
strum_macros.workspace = true
target-lexicon.workspace = true

View file

@ -1,10 +1,11 @@
[package]
name = "roc_serialize"
description = "Provides helpers for serializing and deserializing to/from bytes."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Provides helpers for serializing and deserializing to/from bytes."
[dependencies]
roc_collections = { path = "../collections" }

View file

@ -1,10 +1,11 @@
[package]
name = "roc_solve"
description = "The entry point of Roc's type inference system. Implements type inference and specialization of abilities."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "The entry point of Roc's type inference system. Implements type inference and specialization of abilities."
[dependencies]
roc_collections = { path = "../collections" }

View file

@ -1,10 +1,11 @@
[package]
name = "roc_solve_problem"
description = "Provides types to describe problems that can occur during solving."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Provides types to describe problems that can occur during solving."
[dependencies]
roc_collections = { path = "../collections" }

View file

@ -1,10 +1,11 @@
[package]
name = "test_derive"
description = "Tests Roc's auto-derivers."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Tests Roc's auto-derivers."
[[test]]
name = "test_derive"

View file

@ -1,10 +1,11 @@
[package]
name = "test_gen"
description = "Contains all of Roc's code generation tests."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Contains all of Roc's code generation tests."
[[test]]
name = "test_gen"
@ -14,6 +15,7 @@ path = "src/tests.rs"
roc_builtins = { path = "../builtins" }
roc_utils = { path = "../../utils" }
wasi_libc_sys = { path = "../../wasi-libc-sys" }
tempfile.workspace = true
[dev-dependencies]

View file

@ -1,10 +1,11 @@
[package]
name = "test_mono"
description = "Tests Roc's generation of the mono intermediate representation."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Tests Roc's generation of the mono intermediate representation."
[[test]]
name = "test_mono"

View file

@ -1,15 +1,16 @@
[package]
name = "test_mono_macros"
description = "Macros for use in test_mono."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Macros for use in test_mono."
[lib]
proc-macro = true
[dependencies]
syn = { version = "1.0.81", features = ["full", "extra-traits"] }
quote = "1.0.10"
proc-macro2 = "1.0.32"
syn.workspace = true
quote.workspace = true
proc-macro2.workspace = true

View file

@ -1,10 +1,11 @@
[package]
name = "test_syntax"
description = "Tests for the parse + fmt crates."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Tests for the parse + fmt crates."
[features]
"parse_debug_trace" = ["roc_parse/parse_debug_trace"]

View file

@ -1,18 +1,20 @@
[package]
name = "test_syntax-fuzz"
publish = false
version.workspace = true
authors.workspace = true
publish = false
edition.workspace = true
[package.metadata]
cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.3"
bumpalo = { version = "3.6.1", features = ["collections"] }
test_syntax = { path = "../../test_syntax" }
bumpalo.workspace = true
libfuzzer-sys.workspace = true
# Prevent this from interfering with workspaces
[workspace]
members = ["."]

View file

@ -1,10 +1,11 @@
[package]
name = "roc_types"
description = "Various representations and utilities for dealing with types in the Roc compiler."
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
description = "Various representations and utilities for dealing with types in the Roc compiler."
[dependencies]
roc_collections = { path = "../collections" }

View file

@ -1,13 +1,14 @@
[package]
name = "roc_unify"
description = "Implements Roc's unification algorithm, the heartstone of Roc's type inference."
authors.workspace = true
edition.workspace = true
license.workspace = true
name = "roc_unify"
version.workspace = true
description = "Implements Roc's unification algorithm, the heartstone of Roc's type inference."
[dependencies]
bitflags = "1.3.2"
bitflags.workspace = true
[dependencies.roc_collections]
path = "../collections"