Piotr Osiewicz
59b441d002
chore: Use workspace fields for edition and publish ( #23291 )
...
This prepares us for an upcoming bump to Rust 2024 edition.
Release Notes:
- N/A
2025-01-17 17:39:22 +01:00
Sinan Gençoğlu and Marshall Bowers
ceb0fe83f2
Replace lazy_static with std::sync::LazyLock ( #16066 )
...
Closes #15860
Since rust std now supports LazyLock replacing lazy_static with it
reduce the external dependency.
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com >
2024-08-20 14:27:33 -04:00
Marshall Bowers
ea7674cb75
Extract paths out of util ( #13182 )
...
This PR extracts the definition of the various Zed paths out of `util`
and into a new `paths` crate.
`util` is for generic utils, while these paths are Zed-specific. For
instance, `gpui` depends on `util`, and it shouldn't have knowledge of
these paths, since they are only used by Zed.
Release Notes:
- N/A
2024-06-17 19:27:42 -04:00
Marshall Bowers
ca6e1659eb
Move Clippy configuration to the workspace level ( #8891 )
...
This PR moves the Clippy configuration up to the workspace level.
We're using the [`lints`
table](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-lints-table )
to configure the Clippy ruleset in the workspace's `Cargo.toml`.
Each crate in the workspace now has the following in their own
`Cargo.toml` to inherit the lints from the workspace:
```toml
[lints]
workspace = true
```
This allows for configuring rust-analyzer to show Clippy lints in the
editor by using the following configuration in your Zed `settings.json`:
```json
{
"lsp": {
"rust-analyzer": {
"initialization_options": {
"check": {
"command": "clippy"
}
}
}
}
```
Release Notes:
- N/A
2024-03-05 12:01:17 -05:00
Dzmitry Malyshau
cc18ac5721
Clean up many small dependencies (part 3) ( #8425 )
...
Follow-up to #8353
Release Notes:
- N/A
2024-02-26 11:08:57 +02:00
Piotr Osiewicz
50829b7b48
chore: Move workspace dependencies to workspace.dependencies ( #7454 )
...
We should prefer referring to local deps via `.workspace = true` from
now on.
Release Notes:
- N/A
2024-02-06 20:41:36 +01:00
Marshall Bowers
f0c0bf5039
Sort dependencies in Cargo.toml files ( #7126 )
...
This PR sorts the dependency lists in our `Cargo.toml` files so that
they are in alphabetical order.
This should make them easier to visually scan when looking for a
dependency.
Apologies in advance for any merge conflicts 🙈
Release Notes:
- N/A
2024-01-30 21:41:29 -05:00
953f5c9d35
gpui: Add Global marker trait ( #7095 )
...
This should prevent a class of bugs where one queries the wrong type of
global, which results in oddities at runtime.
Release Notes:
- N/A
---------
Co-authored-by: Marshall <marshall@zed.dev >
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com >
2024-01-30 14:08:20 -05:00
Marshall Bowers
dbd0a760e6
Clean up Cargo.toml files ( #7044 )
...
This PR cleans up some inconsistencies in the `Cargo.toml` files that
were driving me crazy.
Release Notes:
- N/A
2024-01-29 23:47:20 -05:00
Piotr Osiewicz
4ef5a925ad
Licenses: change license fields in Cargo.toml to AGPL-3.0-or-later. ( #5535 )
...
Release Notes:
- N/A
2024-01-27 13:51:16 +01:00
Julian Braha
d3611483a7
Replace tempdir crate with tempfile
2024-01-24 17:58:09 +00:00
Piotr Osiewicz
5cb6fc5776
chore: Change AGPL-licensed crates to GPL (except for collab) ( #4231 )
...
- [x] Fill in GPL license text.
- [x] live_kit_client depends on live_kit_server as non-dev dependency,
even though it seems to only be used for tests. Is that an issue?
Release Notes:
- N/A
2024-01-24 00:26:58 +01:00
Piotr Osiewicz
1e1b434acc
Remove license-file from Cargo.toml as it is apparently redundant ( #4218 )
...
Release Notes:
- N/A
2024-01-23 17:40:30 +01:00
Piotr Osiewicz and David
3fe512e1aa
chore: Add crate licenses. ( #4158 )
...
- GPUI and all dependencies: Apache 2
- Everything else: AGPL
Here's a script that I've generated for it:
https://gist.github.com/osiewicz/6afdd6626e517da24a2092807e6f0b6e
Release Notes:
- N/A
---------
Co-authored-by: David <david@zed.dev >
2024-01-23 16:56:22 +01:00
Nathan Sobo
2f2061db74
WIP
2023-05-22 23:11:27 -06:00
Max Brunsfeld
d1f33d7052
🎨 Specify more dependencies at the workspace level
2023-04-24 17:41:55 -07:00
Antonio Scandurra
ba4c257b50
Use the same serde version across the entire workspace
2023-03-28 09:42:00 -07:00
Antonio Scandurra and Julia Risley
e2c6eaa335
Deserialize Theme directly into the heap to avoid stack overflow
...
Co-Authored-By: Julia Risley <julia@zed.dev >
2023-03-17 15:58:52 +01:00
Mikayla Maki
fc7532d74d
Added complete scripts for generating third party license files
2023-01-23 12:47:12 -08:00
Mikayla Maki and
d6aaa8aca9
CHANGE LOCK TO NOT BE DROPPED INSTANTLY. DANG U RUST
...
co-authored-by: kay@zed.dev
2022-12-03 16:06:02 -08:00
Kay Simmons and Mikayla Maki
22f44c8024
make thread safe connection more thread safe
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2022-12-03 16:06:01 -08:00
Kay Simmons and Mikayla Maki
18494210e5
Added sql! proc macro which checks syntax errors on sql code and displays them with reasonable underline locations
...
Co-Authored-By: Mikayla Maki <mikayla@zed.dev >
2022-12-03 16:06:01 -08:00
Mikayla Maki
80df7a3698
WIP: Some bugs switching to database provided IDs, terminal titles don't reload when restored from serialized, workspace tests are no longer passing but should be easy to fix when it isn't 11:44
2022-12-03 16:06:01 -08:00
Mikayla Maki
3ea3593b1a
Added UUID based, stable workspace ID for caching on item startup. Completed first sketch of terminal persistence. Still need to debug it though....
2022-12-03 16:06:01 -08:00
Mikayla Maki
9cd1ea77cb
WIP termial implementation. need some way of getting the currently valid workspace ID
2022-12-03 16:06:01 -08:00
Mikayla Maki
a062ac2c27
Moved to workspaces crate... don't feel great about it
2022-12-03 16:05:26 -08:00
Kay Simmons
3925874dd3
replace worktree roots table with serialized worktree roots list
2022-12-03 16:05:25 -08:00
Mikayla Maki
2e3cb9dd97
Converted to sqlez, so much nicer
2022-12-03 16:05:25 -08:00
Mikayla Maki
98ac6099f4
Added sqlez api
2022-12-03 16:05:25 -08:00
Kay Simmons
f6847e5ecc
WIP switching to sqlez
2022-12-03 16:05:24 -08:00
Mikayla Maki
89e8e6ef22
Fixed failing serialization issues
2022-12-03 16:04:10 -08:00
Mikayla Maki and
9551bebee2
Rebase - Got Zed compiling and fixed a build error due to conflicting dependencies that cargo didn't catch :(
...
Co-Authored-By: kay@zed.dev
2022-12-03 16:04:10 -08:00
Mikayla Maki
656c5c6530
Figured out a good schema for the pane serialization stuff
2022-12-03 16:04:10 -08:00
Mikayla Maki
6126f2d1f6
Rebase - Successfully detecting workplace IDs :D
2022-12-03 16:04:10 -08:00
Mikayla Maki
256ac50057
Rebase fix + Started writing the real SQL we're going to need
2022-12-03 16:04:10 -08:00
K Simmons
7d11a3b37f
WIP
2022-12-03 16:04:10 -08:00
Mikayla Maki
f7e2e1c0ee
Upgraded migration library to remove panic
2022-10-28 11:36:41 -07:00
Mikayla Maki and
3cf445cb27
Finished up initial sqlite implemention
...
Co-Authored-By: kay@zed.dev
2022-10-18 15:58:05 -07:00
K Simmons
eabcaf8e8a
Get rusqlite more shippable
2022-10-18 11:43:18 -07:00
Mikayla Maki
c66887ae3f
Converted to using rusqlite
2022-10-17 17:04:30 -07:00
K Simmons
5644001981
wip
2022-10-17 17:04:19 -07:00
Nathan Sobo and Joseph Lyons
22265e4f99
Extract db module from project to its own crate
...
This will let us use it from the telemetry crate.
Co-authored-by: Joseph Lyons <joseph@zed.dev >
2022-09-26 16:37:09 -06:00