[HACKERS] Rust bindings to pgtypes lib

Поиск
Список
Период
Сортировка
От Kaare Rasmussen
Тема [HACKERS] Rust bindings to pgtypes lib
Дата
Msg-id 2072737.17NOpUQXIc@linux-upls
обсуждение исходный текст
Ответы Re: [HACKERS] Rust bindings to pgtypes lib  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
Hi

For learning purposes (and because I probably need it) , I've started to make 
Rust bindings to the pgtypes Library.

One problem I'm thinking about right now is how to know if, and where, the 
library and the include files are installed. One way to avoid that problem is 
to include the source of pgtypeslib in my project, and let the rust build 
system take care of it *.

But is this possible, or feasible? I see that the makefile refers to 
Makefile.global, and also includes stuff from ecpg, aat least. I don't want to 
include the whole pg source tree, just the nice, safe, little corner that 
would be used for this purpose.

How much of the source tree would I have to carve out?
Or from another perspective; how do other language (if any) solve this?

* Not sure it can, but other rust crates seem to do it that way, e.g. https://
github.com/alexcrichton/bzip2-rs

-- 
Med venlig hilsen
Kaare Rasmussen, Jasonic

Jasonic:  Nordre Fasanvej 12, 2000 Frederiksberg




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jim Finnerty
Дата:
Сообщение: Re: [HACKERS] Challenges preventing us moving to 64 bit transaction id (XID)?
Следующее
От: Ryan Murphy
Дата:
Сообщение: Re: [HACKERS] Bug in Physical Replication Slots (at least 9.5)?