Skip to content

Commit 59ae4ff

Browse files
committed
chore: rename synd-authn to synt-auth to publish as a new crate
1 parent e853cdb commit 59ae4ff

File tree

15 files changed

+20
-21
lines changed

15 files changed

+20
-21
lines changed

Cargo.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

crates/synd_authn/Cargo.toml crates/synd_auth/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license.workspace = true
77
repository.workspace = true
88

99
description = "syndicationd authentication lib"
10-
name = "synd-authn"
10+
name = "synd-auth"
1111
readme = "README.md"
1212
version = "0.1.1"
1313

File renamed without changes.
File renamed without changes.

crates/synd_term/Cargo.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ name = "synd"
1616
path = "src/main.rs"
1717

1818
[dependencies]
19-
synd-authn = { path = "../synd_authn", version = "0.1.1" }
20-
synd-feed = { path = "../synd_feed", version = "0.1.0" }
21-
synd-o11y = { path = "../synd_o11y", version = "0.1.0" }
19+
synd-auth = { path = "../synd_auth", version = "0.1.1" }
20+
synd-feed = { path = "../synd_feed", version = "0.1.0" }
21+
synd-o11y = { path = "../synd_o11y", version = "0.1.0" }
2222

2323
anyhow = { workspace = true }
2424
chrono = { workspace = true }
@@ -49,8 +49,7 @@ url = { workspace = true }
4949
integration = []
5050

5151
[dev-dependencies]
52-
synd-api = { path = "../synd_api" }
53-
52+
synd-api = { path = "../synd_api" }
5453
synd-test = { path = "../synd_test" }
5554

5655
axum-server = { workspace = true }

crates/synd_term/src/application/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::{pin::Pin, time::Duration};
33
use crossterm::event::{Event as CrosstermEvent, KeyCode, KeyEvent, KeyEventKind};
44
use futures_util::{FutureExt, Stream, StreamExt};
55
use ratatui::{style::palette::tailwind, widgets::Widget};
6-
use synd_authn::device_flow::{
6+
use synd_auth::device_flow::{
77
github::DeviceFlow, DeviceAccessTokenResponse, DeviceAuthorizationResponse,
88
};
99
use tokio::time::{Instant, Sleep};

crates/synd_term/src/command.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::fmt::Display;
2-
use synd_authn::device_flow::{DeviceAccessTokenResponse, DeviceAuthorizationResponse};
2+
use synd_auth::device_flow::{DeviceAccessTokenResponse, DeviceAuthorizationResponse};
33

44
use crate::{
55
application::{Direction, ListAction, RequestSequence},

crates/synd_term/src/ui/components/authentication.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use ratatui::{
77
Widget,
88
},
99
};
10-
use synd_authn::device_flow::DeviceAuthorizationResponse;
10+
use synd_auth::device_flow::DeviceAuthorizationResponse;
1111

1212
use crate::{
1313
auth::AuthenticationProvider,

crates/synd_term/tests/integration.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mod test {
1111
};
1212
use serial_test::file_serial;
1313

14-
use synd_authn::device_flow::github::DeviceFlow;
14+
use synd_auth::device_flow::github::DeviceFlow;
1515

1616
use synd_term::{
1717
application::{Application, Config},

crates/synd_test/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ publish = false
1212
version = "0.1.0"
1313

1414
[dependencies]
15-
synd-authn = { path = "../synd_authn" }
15+
synd-auth = { path = "../synd_auth" }
1616

1717
anyhow = { workspace = true }
1818
axum = { workspace = true }

crates/synd_test/src/mock.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use axum::{
66
Form, Json, Router,
77
};
88
use headers::{authorization::Bearer, Authorization, Header};
9-
use synd_authn::device_flow::{
9+
use synd_auth::device_flow::{
1010
DeviceAccessTokenRequest, DeviceAccessTokenResponse, DeviceAuthorizationRequest,
1111
DeviceAuthorizationResponse,
1212
};

justfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ otlp_endpoint := env_var_or_default("OTEL_EXPORTER_OTLP_ENDPOINT", "")
66
loki_endpoint := env_var_or_default("LOKI_ENDPOINT","")
77

88
term_dir := "crates/synd_term"
9-
authn_dir := "crates/synd_authn"
9+
auth_dir := "crates/synd_auth"
1010

1111
alias format := fmt
1212
alias integration := integration-test
@@ -105,12 +105,12 @@ changelog: changelog-term
105105
changelog-term:
106106
git cliff --include-path "{{term_dir}}/**" out> {{term_dir}}/CHANGELOG.md
107107

108-
changelog-authn:
109-
git cliff --include-path "{{authn_dir}}/**" out> {{authn_dir}}/CHANGELOG.md
108+
changelog-auth:
109+
git cliff --include-path "{{auth_dir}}/**" --include-path "crates/authn/*" out> {{auth_dir}}/CHANGELOG.md
110110

111-
# Release synd_authn
112-
release-authn *flags:
113-
cargo release --package synd-authn {{flags}}
111+
# Release synd_auth
112+
release-auth *flags:
113+
cargo release --package synd-auth {{flags}}
114114

115115
# Release synd_term
116116
release-term *flags:

0 commit comments

Comments
 (0)