head	1.15;
access;
symbols
	pkgsrc-2026Q3:1.15.0.6
	pkgsrc-2026Q3-base:1.15
	pkgsrc-2026Q2:1.15.0.4
	pkgsrc-2026Q2-base:1.15
	pkgsrc-2026Q1:1.15.0.2
	pkgsrc-2026Q1-base:1.15
	pkgsrc-2025Q4:1.14.0.6
	pkgsrc-2025Q4-base:1.14
	pkgsrc-2025Q3:1.14.0.4
	pkgsrc-2025Q3-base:1.14
	pkgsrc-2025Q2:1.14.0.2
	pkgsrc-2025Q2-base:1.14
	pkgsrc-2025Q1:1.13.0.2
	pkgsrc-2025Q1-base:1.13
	pkgsrc-2024Q4:1.11.0.2
	pkgsrc-2024Q4-base:1.11
	pkgsrc-2024Q3:1.8.0.2
	pkgsrc-2024Q3-base:1.8
	pkgsrc-2024Q2:1.7.0.2
	pkgsrc-2024Q2-base:1.7
	pkgsrc-2024Q1:1.6.0.2
	pkgsrc-2024Q1-base:1.6
	pkgsrc-2023Q4:1.4.0.2
	pkgsrc-2023Q4-base:1.4
	pkgsrc-2023Q3:1.3.0.2
	pkgsrc-2023Q3-base:1.3;
locks; strict;
comment	@# @;


1.15
date	2026.01.07.08.46.08;	author wiz;	state Exp;
branches;
next	1.14;
commitid	1wQ3ICD8eebefrpG;

1.14
date	2025.04.17.21.50.01;	author wiz;	state Exp;
branches;
next	1.13;
commitid	xcIXAVA292fk6sRF;

1.13
date	2025.03.06.08.27.24;	author pin;	state Exp;
branches;
next	1.12;
commitid	i2AcXfw5FvS71ZLF;

1.12
date	2025.01.31.12.29.17;	author pin;	state Exp;
branches;
next	1.11;
commitid	45yqeD4m5VHRrDHF;

1.11
date	2024.11.14.22.18.59;	author wiz;	state Exp;
branches;
next	1.10;
commitid	JmuDYqwL4erbdFxF;

1.10
date	2024.11.01.12.51.44;	author wiz;	state Exp;
branches;
next	1.9;
commitid	QB4Wk02mZPuBuWvF;

1.9
date	2024.11.01.00.50.58;	author wiz;	state Exp;
branches;
next	1.8;
commitid	QT27BdVP362gvSvF;

1.8
date	2024.09.04.09.31.47;	author pin;	state Exp;
branches;
next	1.7;
commitid	Gw8tI96kw07VftoF;

1.7
date	2024.05.29.16.31.39;	author adam;	state Exp;
branches;
next	1.6;
commitid	n8aFyEjEVZA0JUbF;

1.6
date	2024.03.22.12.11.02;	author pin;	state Exp;
branches;
next	1.5;
commitid	7qH19PEyirwnt93F;

1.5
date	2024.01.05.08.46.36;	author pin;	state Exp;
branches;
next	1.4;
commitid	Liu3Y0InWOgHOeTE;

1.4
date	2023.11.08.13.18.23;	author wiz;	state Exp;
branches;
next	1.3;
commitid	PsuHTklAIsF4bOLE;

1.3
date	2023.08.25.09.24.25;	author pin;	state Exp;
branches;
next	1.2;
commitid	sJfoO2UbdkQIi9CE;

1.2
date	2023.07.01.07.02.46;	author wiz;	state Exp;
branches;
next	1.1;
commitid	86Ela9S5knAJh4vE;

1.1
date	2023.06.26.11.47.35;	author wiz;	state Exp;
branches;
next	;
commitid	AvdrwUtZscgr1suE;


desc
@@


1.15
log
@*: recursive bump for icu 78.1
@
text
@# $NetBSD: Makefile,v 1.14 2025/04/17 21:50:01 wiz Exp $

DISTNAME=	diesel-cli-2.2.8
PKGREVISION=	2
CATEGORIES=	databases
MASTER_SITES=	${MASTER_SITE_GITHUB:=diesel-rs/}
GITHUB_PROJECT=	diesel
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://diesel.rs/
COMMENT=	CLI for the Diesel crate
LICENSE=	apache-2.0 OR mit

INSTALLATION_DIRS+=	bin
INSTALLATION_DIRS+=	share/bash-completion/completions
INSTALLATION_DIRS+=	share/zsh/site-functions
INSTALLATION_DIRS+=	share/fish/vendor_completions.d

DIESEL_BINARY=		${WRKSRC}/target/release/diesel

.include "cargo-depends.mk"

RUST_REQ=	1.78.0
USE_TOOLS+=	pkg-config

RUSTFLAGS+=	-C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.sqlite3}/lib
RUSTFLAGS+=	-C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib

post-build:
	cd ${WRKSRC} && ${DIESEL_BINARY} completions bash > diesel.bash
	cd ${WRKSRC} && ${DIESEL_BINARY} completions zsh > diesel.zsh
	cd ${WRKSRC} && ${DIESEL_BINARY} completions fish > diesel.fish

do-install:
	${INSTALL_PROGRAM} ${DIESEL_BINARY} ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/diesel.bash ${DESTDIR}${PREFIX}/share/bash-completion/completions/diesel
	${INSTALL_DATA} ${WRKSRC}/diesel.zsh ${DESTDIR}${PREFIX}/share/zsh/site-functions/_diesel
	${INSTALL_DATA} ${WRKSRC}/diesel.fish ${DESTDIR}${PREFIX}/share/fish/vendor_completions.d/diesel.fish

.include "../../lang/rust/cargo.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.14
log
@*: recursive bump for icu 77 and libxml2 2.14
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2025/03/06 08:27:24 pin Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.13
log
@databases/diesel-cli: update to 2.2.8

Fixed

 - Allow #[diesel(check_for_backend(_))] to check fields with #[diesel(embed)] annotations
 - Improve custom compile error message around CompatibleType
 - Fix a bug that restricted the number of allowed columns in COPY FROM statements to 12
 - Expose some SqliteValue helper functions
 - Use consistent whitespace in ASC/DESC, DISTINCT ON, and DELETE FROM clauses
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2025/01/31 12:29:17 pin Exp $
d4 1
@


1.12
log
@databeses/diesel-cli: update to 2.2.7

v2.2.7
Fixed

    Fixed diesel thinking a.eq_any(b) was non-nullable even if a and b were nullable.
    Generate InstrumentationEvent::BeginTransaction for immediate and exclusive transactions in SQLite
    Minimize the amount of duplicated code generated for diesel::debug_query
    Updated ipnetwork to allow version 0.21.
    Updated libsqlite3-sys to allow version 0.31.0
    Updated pq-sys to allow version 0.7.0
    Add support for numeric operators (+-*/) in #[diesel::auto_type]
    Add support for joins to sub-jons to aliases

v2.2.6
What's Changed

    Remove more mentions of gitter from the documentation

v2.2.5

    Add a typedef for Returning and Count so that #[auto_type] works with such queries
    Fixed an issue that allowed to pass non-boolean expressions to .and() and .or() which would result in queries failing at runtime
    Officially deprecating the gitter room
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2024/11/14 22:18:59 wiz Exp $
d3 1
a3 1
DISTNAME=	diesel-cli-2.2.7
@


1.11
log
@*: recursive bump for icu 76 shlib major version bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2024/11/01 12:51:44 wiz Exp $
d3 1
a3 2
DISTNAME=	diesel-cli-2.2.4
PKGREVISION=	3
@


1.10
log
@*: revbump for icu downgrade
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2024/11/01 00:50:58 wiz Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.9
log
@*: recursive bump for icu 76.1 shlib bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2024/09/04 09:31:47 pin Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.8
log
@databases/diesel-cli: update to 2.2.4

[2.2.4]

Fixed
* Fix an issue where empty queries could trigger undefined behaviour in the sqlite backend

[2.2.3]
* Support for libsqlite3-sys 0.30.0
* Fixed a possible vulnerability in how Diesel handled protocol level bind parameters.
See the SQL Injection isn't Dead: Smuggling Queries at Protocol Level presentation from DEF CON for details
* Fixed an issue with a possibly ambiguous trait resolution in #[derive(QueryableByName)]

[2.2.2]

Fixed
* Support for libsqlite3-sys 0.29.0
* Fixed a potential panic in the sqlite cursor implementation
* Fixed support for rust numeric operators with columns of the type `Numeric`
* Removed the `SerializedDatabase::new` function due to unsoundness

[2.2.1]

Fixed
* Fixed using `#[dsl::auto_type]` with functions that accept reference arguments
* Fixed using `#[derive(Queryable)]` with structs that use a type named `Row` as field type
* Fixed a regression that prevented using `mysqlclient-sys` 0.2.x with diesel 2.2
* Fixed connecting to postgres database using the scram-sha-256 authentication method on windows while using the bundled postgres builds
* Improved the error messages in diesel-cli for cases where a file/folder was not found
* Fixed several version detection bugs in mysqlclient-sys to use pre-generated bindings in more situations

[2.2.0]

Added
* Support `[print_schema] except_custom_type_definitions = ["Vector"]`. If a `custom type` matches one element on the list it's skipped.
* Added automatic usage of all sqlite `rowid` aliases when no explicit primary key is defined for `print-schema`
* Added a `#[dsl::auto_type]` attribute macro, allowing to infer type of query fragment functions
* Added the same type inference on `Selectable` derives, which allows skipping specifying `select_expression_type` most of the time, in turn enabling most queries to be written using just a `Selectable` derive.
* Added an optional `#[diesel(skip_insertion)]` field attribute to the `Insertable` derive macro, allowing fields which map to generated columns to be skipped during insertion.
* Support for connection instrumentation. This allows to inspect any query run by your application
* Logging in diesel-cli
* Support for libsqlite3-sys 0.28
* Add `sqlite-integer-primary-key-is-bigint` configuration option, usable with SQLite 3.37 or above, allowing to use `BigInt` for `INTEGER PRIMARY KEY` columns in SQLite for tables without the `WITHOUT ROWID` attribute ([SQLite doc](https://www.sqlite.org/lang_createtable.html#rowid)).
* Support for multiple `print_schema` entry in `diesel.toml` (e.g. `[print_schema.user1]`), which allows generating multiple schema.rs files
* Add support for `COPY TO` and `COPY FROM` statements
* Add support for mapping `chrono::Duration` to postgresql's `INTERVAL` sql type
* Added `serialize_database_to_buffer` and `deserialize_readonly_database_from_buffer` methods in `SqliteConnection` to support serialization/deserialization of SQLite databases to and from byte buffers.
* Added `SerializedDatabase` wrapper type for a serialized database that is dynamically allocated by calling `serialize_database_to_buffer`. This RAII wrapper deallocates the memory when it goes out of scope with `sqlite3_free`.

Changed
* The minimal officially supported rustc version is now 1.78.0
* Deprecated `sql_function!` in favour of `define_sql_function!` which provides compatibility with `#[dsl::auto_type]`
* Deserialization error messages now contain information about the field that failed to deserialize

[2.1.6]

* Fix using `BoxableExpression` with having clauses
* Fix using numeric expressions with aliased fields
* Minor documentation fixes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2024/05/29 16:31:39 adam Exp $
d4 1
@


1.7
log
@revbump after icu and protobuf updates
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2024/03/22 12:11:02 pin Exp $
d3 1
a3 2
DISTNAME=	diesel-cli-2.1.5
PKGREVISION=	1
d23 1
@


1.6
log
@databeses/diesel-cli: update to 2.1.5

 - Fix impl SqlOrd postgres > postgres_backend feature flag.
 - Allow Queryable to be used with multiple table names.
 - Update libsqlite3-sys to allow version 0.28 as well
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2024/01/05 08:46:36 pin Exp $
d4 1
@


1.5
log
@databases/diesel-cli: update to 2.1.4

v2.1.4
 - Update libsqlite3-sys to allow version 0.27 as well

v2.1.3
 - Increased accidentally decreased limit around element count in DISTINCT ON
   and ORDER BY clauses again as that broke existing code

v2.1.2
 - Fixed another potential breaking chaneg around queries containing DISTINCT
   ON and ORDER BY clauses consisting of custom sql expressions
   (e.g. .nullable())
 - Fixed an issue where #[derive(Selectable)] and #[diesel(check_for_backend)]
   generates invalid rust code if the struct contains lifetimes/generic types
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2023/11/08 13:18:23 wiz Exp $
d3 1
a3 1
DISTNAME=	diesel-cli-2.1.4
@


1.4
log
@*: recursive bump for icu 74.1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2023/08/25 09:24:25 pin Exp $
d3 1
a3 2
DISTNAME=	diesel-cli-2.1.1
PKGREVISION=	1
@


1.3
log
@databases/diesel-cli: update to 2.1.1

Fixed
 - Fixed an issue in diesel-cli that lead to using unquoted table names in one
   of the internal queries
 - Fixed a bug in diesel print-schema that lead to generating invalid table!
   macros if both the #[sql_name] and the #[max_lenght] attribute are present
 - Fixed an issue in diesel-cli that lead to ignoring certain foreign key
   constraints for postgresql
 - Fixed an crash while using diesel print-schema with really old sqlite
   versions
 - Fixed an issue where #[diesel(check_for_backend)] ignored
   #[diesel(deserialize_as)] attributes
 - Fixed several issues with the new #[derive(MultiConnection)] feature
 - Fixed some edge cases in our sqlite timestamp parsing behaviour
 - diesel migration generate --diff-schema now respects table filters as setup
   for print-schema via diesel.toml
 - Fixed a potential breaking change around queries containing DISTINCT ON and
   ORDER BY clauses consisting of custom sql expressions
   (e.g. diesel::dsl::sql)

Added
 - Support for bigdecimal 0.4
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2023/07/01 07:02:46 wiz Exp $
d4 1
@


1.2
log
@diesel-cli: use appropriate INSTALL_* macros
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2023/06/26 11:47:35 wiz Exp $
d3 1
a3 1
DISTNAME=	diesel-cli-2.1.0
@


1.1
log
@databases/diesel-cli: import diesel-cli-2.1.0

Packaged mostly by pin@@ in wip, thanks!

Diesel CLI is a tool that aids in managing your database schema.
Migrations are bi-directional changes to your database that get applied
sequentially.
@
text
@d1 1
a1 1
# $NetBSD$
d35 3
a37 3
	${INSTALL_PROGRAM} ${WRKSRC}/diesel.bash ${DESTDIR}${PREFIX}/share/bash-completion/completions/diesel
	${INSTALL_PROGRAM} ${WRKSRC}/diesel.zsh ${DESTDIR}${PREFIX}/share/zsh/site-functions/_diesel
	${INSTALL_PROGRAM} ${WRKSRC}/diesel.fish ${DESTDIR}${PREFIX}/share/fish/vendor_completions.d/diesel.fish
@

