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

Release/0.3.0 #16

Merged
merged 27 commits into from
Mar 1, 2024
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6fedc61
remove improper categories
jifalops Aug 12, 2023
854d727
make the generated builder infallible, but lose new/default.
jifalops Aug 17, 2023
4d8c32a
remove use/import of traits.
jifalops Aug 17, 2023
a57d7b0
absorb QueryFields into Entity (fewer use statements for users)
jifalops Aug 17, 2023
f221bd0
remove node/relation shorthand attributes
jifalops Aug 17, 2023
2a5ebc4
rename attr: stamps -> timestamps
jifalops Aug 17, 2023
2968e41
update examples, test, clippy
jifalops Aug 17, 2023
01aa390
build and test the workspace
jifalops Aug 20, 2023
d053fd9
rename ci action so its more descriptive in the badge
jifalops Aug 20, 2023
f506535
rename Entity to FieldSet, so it's more clear it is more abstract
jifalops Aug 20, 2023
57fc7a9
wip changing readme
jifalops Aug 20, 2023
ca1274e
add/move scripts
jifalops Aug 21, 2023
f8228cf
rename as_query* to to_query* because it's not free
jifalops Aug 21, 2023
d2712da
add as_query_fields and as_query_obj, static query string that ignore…
jifalops Aug 24, 2023
70b424a
rename fn
jifalops Aug 24, 2023
7addcef
write a bunch of test fragments as includes
jifalops Aug 24, 2023
363a6f5
fix var used
jifalops Aug 24, 2023
c55ae3f
upgrade and sort deps
jifalops Feb 29, 2024
aa3c068
update devcontainer to use my prebuilt rust image
jifalops Feb 29, 2024
0cb7aa5
update scripts
jifalops Feb 29, 2024
7306862
fix neo4rs usage (breaking in 0.7), run ./fix.sh
jifalops Feb 29, 2024
2b3f99b
run ./fix.sh
jifalops Feb 29, 2024
a5f1797
prevent clippy from removing pub use that is actually used in the tests.
jifalops Feb 29, 2024
cc1e871
need to add the 1.0 tag to dockerfile (no latest)
jifalops Mar 1, 2024
aad2e53
merge changes from 'breaking 0.7' branch
jifalops Mar 1, 2024
0e076b1
update readmes, changelog, and bump version
jifalops Mar 1, 2024
2fa5932
bump macros version
jifalops Mar 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
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM mcr.microsoft.com/devcontainers/rust:bookworm
FROM jifalops/rust:1.0
7 changes: 2 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -2,17 +2,14 @@
"name": "Cypher DTO",
"dockerComposeFile": "./docker-compose.yml",
"service": "app",
"remoteUser": "developer",
"workspaceFolder": "/cypher-dto",
"postCreateCommand": ".devcontainer/post-create.sh",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"customizations": {
"vscode": {
"extensions": [
"rust-lang.rust-analyzer",
"JScearcy.rust-doc-viewer",
"serayuzgur.crates",
"tamasfe.even-better-toml"
]
}
5 changes: 5 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,12 @@ services:
volumes:
- ..:/cypher-dto:cached
environment:
PROJECT_ROOT: /cypher-dto
GITHUB_TOKEN: ${GITHUB_TOKEN}
TZ: ${TZ}
NEO4J_TEST_URI: "bolt://db:7687"
NEO4J_TEST_USER: "neo4j"
NEO4J_TEST_PASS: "developer"

db:
image: neo4j:5
10 changes: 2 additions & 8 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# Ensure devcontainer user owns the project directory
sudo chown -R vscode:vscode /cypher-dto
sudo chown -R developer:developer $PROJECT_ROOT

# Remember history on the local machine
ln -s /cypher-dto/.devcontainer/.bash_history ~/.bash_history
ln -s $PROJECT_ROOT/.devcontainer/.bash_history ~/.bash_history

# Install dotfiles
gh repo clone dotfiles ~/dotfiles && ~/dotfiles/install.sh

# rustup and cargo bash completion.
sudo apt-get update -qq && sudo apt-get install -y -qq --no-install-recommends bash-completion \
&& mkdir -p ~/.local/share/bash-completion/completions \
&& rustup completions bash > ~/.local/share/bash-completion/completions/rustup \
&& rustup completions bash cargo > ~/.local/share/bash-completion/completions/cargo
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Rust

Check failure on line 1 in .github/workflows/ci.yml

GitHub Actions / build

.github/workflows/ci.yml#L1

This run was manually canceled.

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
26 changes: 0 additions & 26 deletions .github/workflows/rust.yml

This file was deleted.

14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Change log

## v0.3.0

- Upgrade to neo4rs 0.7.1
- Add a .devcontainer for easy development and contribution.
- Breaking: remove #[node] and #[relation] attributes
- Breaking: renamed the #[stamps] attribute to #[timestamps]
- Breaking: rename derive macros to `Node` and `Relation`.
- Breaking: renamed `as_query_fields()` to `to_query_fields()` and added a parameterless `as_query_fields()` that returns a static string.
- Breaking: renamed `as_query_obj()` to `to_query_obj()` and added a parameterless `as_query_obj()` that returns a static string.
- Breaking: the generated builder struct is now infallible. They no longer have `new()` or `default()` methods.
This is a better fit for the intended use case, modifying an existing entity.
- `Entity` and `QueryFields` have been combined into one struct named `FieldSet`. This is not breaking for macros/derive, but is breaking if you were implementing them manually.
- Share some tests between docs and code.

## v0.2.0

- Fix handling of Option types in getters and parameters (#2)
Loading